-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a function cJSON_IsEmpty() #829
Comments
I think you can just call |
Hi @mbratch, |
@escherstair I see thanks for clarifying, I misunderstood. I suppose it may be an application-specific need. If it were a common pattern in my application, I'd just write my own little function for it. |
If you think it's not a general use case, for me it's ok going on witth the little custom function I wrote. |
Sometimes it's require dto check if a JSON object or array is empty.
As far as I understand, this requires looking to
json->child
, as done insidecJSON_GetArraySize()
cJSON/cJSON.c
Lines 1833 to 1854 in 87d8f09
I would suggest adding a new function, as an example:
What do you think?
The text was updated successfully, but these errors were encountered: