This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I use the cJSON library?

I need to use cJSON to parse the uart data. I found the file in SDK15.3 but how can I use the related function?

Parents Reply
  • Yes, there is no problem when parsing JSON data. But when I create JSON data, I will use cJSON_CreateNumber. So after I blocked all the other parts related to JSON parsing, I called cJSON_CreateNumber and found that as long as the total number of memory blocks from XXS to XXL exceeds 255, calling cJSON_CreateNumber will cause the program to die in HardFault_Handler. There is no log information (I didn't open men_manger module log)

Children
No Data
Related