Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
As I'm working with JSON parser, I noticed that everything works fine untile I receive a JSON frame with an object in it (I mean a child object). From the moment I receive such a JSON frame, all objects in the following frames are considered as children (even the root itself). After few investigations, I may have pointed out a bug in the JSON.c file, line 427 :
In this part of the code, the parser determines the object's parent if it exists (parent_counter != 0) and affects its address to the json_object.parent_object pointer. But the problem is this pointer is never re-initialized (so all objects they will have a parent, even the root of the next JSON frame).