|
|
@ -63,7 +63,7 @@ Assume that you got this from a file, a webserver, or magic JSON elves, whatever |
|
|
|
you have a char * to it. Everything is a cJSON struct. |
|
|
|
Get it parsed: |
|
|
|
|
|
|
|
cJSON * root = cJSON_Parse(my_json_string); |
|
|
|
cJSON * root = cJSON_Parse(my_json_string); |
|
|
|
|
|
|
|
This is an object. We're in C. We don't have objects. But we do have structs. |
|
|
|
What's the framerate? |
|
|
@ -248,4 +248,4 @@ which are more complex than I'd care to try and stash into a const char array[]. |
|
|
|
Enjoy cJSON! |
|
|
|
----------------------- |
|
|
|
|
|
|
|
- Dave Gamble, Aug 2009 |
|
|
|
- Dave Gamble, Aug 2009 |
|
|
|