tiny-json icon indicating copy to clipboard operation
tiny-json copied to clipboard

Update tiny-json.c

Open smdjeff opened this issue 3 years ago • 1 comments

fix for json_getProperty not finding the object if it's the first element.

smdjeff avatar Jul 08 '22 02:07 smdjeff

By reading the comments, I do understand that the json_getPropertyValue() function search a property into an object and returning the object itself sould not be possible, otherwise we no more searching into it.

What about: { "propA": { "propA": "testValue"}}

If I want to get the property "propA" of "propA", do I get "testValue" after this patch. I do not have tested it, but I'am a little bit concerned.

Alcantor avatar Feb 24 '23 12:02 Alcantor