mirror of
https://github.com/json-c/json-c.git
synced 2026-03-28 17:39:07 +08:00
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:
@@ -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