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
Describe the bug
When json-c converts a json array to a json string and the flag JSON_C_TO_STRING_PRETTY is used, it inserts a newline even if the array is empty.
Describe the bug
When json-c converts a json array to a json string and the flag
JSON_C_TO_STRING_PRETTY
is used, it inserts a newline even if the array is empty.json-c/json_object.c
Lines 1377 to 1378 in d28ac67
Here in the if condition it should check if the array is not empty, otherwise it looks like this:
I think it would be better if it looked like this:
Pretty insignificant, I know 😄
Steps To Reproduce
Version and Platform
The text was updated successfully, but these errors were encountered: