When serializing with JSON_C_TO_STRING_PRETTY set, keep the opening and closing curly or square braces on same line for empty objects or arrays. Issue #778.
This commit is contained in:
1 parent
2e9b7456a5
commit
9749b0cb66
9 files changed
+42
-20
No files matched your search
@@ -75,4 +75,4 @@ my_object=
|
||||
foo: "bar"
|
||||
bool0: false
|
||||
bool1: true
|
||||
my_object.to_string()={"abc":12,"foo":"bar","bool0":false,"bool1":true}
|
||||
my_object.to_string()={"abc":12,"foo":"bar","bool0":false,"bool1":true,"empty_array":[],"empty_obj":{}}
|
||||
Reference in new issue
Block a user