{"a": {}, "d": {}}
(1 row)
-select jsonb_indent('{"a": "test", "b": [1, 2, 3], "c": "test3", "d":{"dd": "test4", "dd2":{"ddd": "test5"}}}');
- jsonb_indent
+select jsonb_pretty('{"a": "test", "b": [1, 2, 3], "c": "test3", "d":{"dd": "test4", "dd2":{"ddd": "test5"}}}');
+ jsonb_pretty
----------------------------
{ +
"a": "test", +
}
(1 row)
-select jsonb_indent('[{"f1":1,"f2":null},2,null,[[{"x":true},6,7],8],3]');
- jsonb_indent
+select jsonb_pretty('[{"f1":1,"f2":null},2,null,[[{"x":true},6,7],8],3]');
+ jsonb_pretty
---------------------------
[ +
{ +
]
(1 row)
-select jsonb_indent('{"a":["b", "c"], "d": {"e":"f"}}');
- jsonb_indent
+select jsonb_pretty('{"a":["b", "c"], "d": {"e":"f"}}');
+ jsonb_pretty
------------------
{ +
"a": [ +