Json reader
Posted: Fri Dec 11, 2020 8:52 am
Hi everyone,
I´m working with the json lexer, I was trying to print a post result in json which has a json object in main json object, so I want to print the data of the second json object, I was reading the documentation of json_lexer class and I found this method, FindFullName("obj1.obj2Element") but It return a json_primative_type data so I can´t print it like a string, I tried to print the object using printf("Object [%s] \r\n", JsonInObject.FindFullNameString("obj1.obj2Element")) but It return null, some one know how can I print the result, I will appreciate any help provided
Thanks Fredy
Json example
{
"SUCCESS": true,
"obj1": {
"obj2Element": "value 01",
"obj2Element2": "value 02"
}
}
I´m working with the json lexer, I was trying to print a post result in json which has a json object in main json object, so I want to print the data of the second json object, I was reading the documentation of json_lexer class and I found this method, FindFullName("obj1.obj2Element") but It return a json_primative_type data so I can´t print it like a string, I tried to print the object using printf("Object [%s] \r\n", JsonInObject.FindFullNameString("obj1.obj2Element")) but It return null, some one know how can I print the result, I will appreciate any help provided
Thanks Fredy
Json example
{
"SUCCESS": true,
"obj1": {
"obj2Element": "value 01",
"obj2Element2": "value 02"
}
}