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:
{
"text1": "result1",
"XXX.XXX": {
"text2": "result2"
}
}
So I can retrieve text1 data (result1) with this:
Code:
json_object_get_string(object, "text1", data, charsmax(data)
But this won't work because dot notation in the key:
Code:
json_object_get_string(object, "XXX.XXX.text2", data, charsmax(data)
Can someone write a plugin that reads all of those and stores it to an array?