json parse error.


Mariappan N <nmarijoe@...>
 

hello,
Am developing http client app in zephyr. After http post am getting huge json data as response. It contains around 60 elements in it.
Am using in built json library to parse the json data. Created the json_obj_decr struct and mapped same as the JSON data.

However, the API json_obj_parse returns the invalid error. it throws the error value as -22.

As per documentation, there is limitation for json_obj_parse api

descr_len Number of elements in the descriptor array. Must be less than 31 due to implementation detail reasons (if more fields are necessary, use two descriptors)

In my case decr_len value will be around 60. If there any pointer on this, would be helpful.