mirror of
https://github.com/json-c/json-c.git
synced 2026-03-30 10:29:06 +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:
@@ -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