Add unique values/sort values to pretty_formatted_json

This commit is contained in:
Alexander Fischer 2021-09-14 11:44:38 +02:00
parent 7eb0512c68
commit 1cf0b2d22d
5 changed files with 195 additions and 4 deletions

View file

@ -0,0 +1,25 @@
{
"foo": "bar",
"sort_list": [
34,
2,
234
],
"wont_sort_list": [
34,
2,
""
],
"sub_dict": {
"sub_sub_dict": {
"sort_sub_sub_sub_dict": [
"foo",
"bar",
"bar",
"baz"
],
"do_not_sort": []
}
},
"blah": null
}

View file

@ -0,0 +1,25 @@
{
"unique_list": [
234,
34,
2,
234
],
"sub_dict": {
"sub_list": [
"foo",
"foo",
{
"sub_sub_dict_entry": "sub_sub_dict_entry_value"
},
"bar",
[
1,
2,
3
]
],
"sub_list_2": "sub_list_2_value"
},
"foo": "bar"
}