Read JSON with dot notation in key
I'm new, I mean really NEW to JSON so I can't figure it out how can I get the values from keys under a dot notated "key"?
JSON file format: Code:
{ Code:
json_object_get_string(object, "text1", data, charsmax(data) Code:
json_object_get_string(object, "XXX.XXX.text2", data, charsmax(data) |
Re: Read JSON with dot notation in key
If the key has dots then you can't use the dot notation, it even says so in the doc. First retrieve the "XXX.XXX" object using json_object_get_value, then retrieve the property from that object.
|
Re: Read JSON with dot notation in key
Oh hell, got it thanks.
Just had a look at return of get_value :D |
All times are GMT -4. The time now is 16:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.