Improve dictionary printing to avoid confusion with arrays

- Add leading and trailing spaces within dictionaries, as the `{}`
  characters are hard to distinguish from `[]` on some fonts.
  This is especially helpful with empty arrays and dictionaries.
This commit is contained in:
Hugo Locurcio 2022-08-18 17:20:55 +02:00
parent 0056acf46f
commit 6afbf0bd5a
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
7 changed files with 17 additions and 15 deletions

View file

@ -1,2 +1,2 @@
GDTEST_OK
{"a":1, "b":2, "with spaces":3, "2":4}
{ "a": 1, "b": 2, "with spaces": 3, "2": 4 }