mirror of
https://github.com/json-c/json-c.git
synced 2026-11-05 21:20:16 +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:
1 parent
2e9b7456a5
commit
9749b0cb66
9 files changed
+42
-20
No files matched your search
@@ -97,5 +97,7 @@ my_object.to_string()={
|
||||
"abc":12,
|
||||
"foo":"bar",
|
||||
"bool0":false,
|
||||
"bool1":true
|
||||
"bool1":true,
|
||||
"empty_array":[],
|
||||
"empty_obj":{}
|
||||
}
|
||||
Reference in new issue
Block a user