You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the problem with this is that the name of the object gets lost after the replacement. I see that the name is not copied in cJSON_ReplaceItemViaPointer().
For those having the same problem an alternative to this is:
, with the disadvantage that the position of the object in the array will not be the same. The JSON standard says it shouldn't matter, but in the end it depends on the endpoint's parser implementation.
The text was updated successfully, but these errors were encountered:
What I would like to do is replace a child object with another object:
But the problem with this is that the name of the object gets lost after the replacement. I see that the name is not copied in cJSON_ReplaceItemViaPointer().
For those having the same problem an alternative to this is:
, with the disadvantage that the position of the object in the array will not be the same. The JSON standard says it shouldn't matter, but in the end it depends on the endpoint's parser implementation.
The text was updated successfully, but these errors were encountered: