cJSON
cJSON copied to clipboard
Need for cJSON_SetBooleanValue
There is no way to update existing boolean item. The only path I see is to check if the new value matches the old and if it doesn't then delete the old item and create new item. cJSON_SetBooleanValue would be a better option.
Same problem here. A better solution then creating new objects will be just to fiddle with the type field