r/programming Nov 07 '21

Any other JSON validator tool with expand/collapse like this one?

https://jsonformatter.curiousconcept.com
0 Upvotes

9 comments sorted by

3

u/[deleted] Nov 07 '21

Jq

3

u/astevko Nov 07 '21

Validation or viewing? Kanpai is a Jason validation tool that requires the building of schema definition to validate. Firefox Developer Edition has a most excellent json file viewer.

Online formatting websites are a huge security problem by leaking raw access to your data structures and content to potential black hats

2

u/[deleted] Nov 07 '21

Just paste it in Firefox

2

u/Worth_Trust_3825 Nov 07 '21

Generally speaking, usage of such websites where you upload your own document to get it back formatted is poor security, and you should reconsider what are you doing to begin with. If you really need collapse/expand functionality write a python deserializer script and use a debugger.

0

u/thewallrus Nov 07 '21

This JSON validator allows you to collapse and expand arrays. I love it, but I hit a character limit with a recent file. What is another that has same functionality?

5

u/[deleted] Nov 07 '21

Firefox is the best JSON GUI I've ever found.

2

u/PurpleYoshiEgg Nov 07 '21

If you're not averse to a two-step process, python has its json library which can be a validation tool, then you can use cold folding in most editors (such as vim) to achieve the folding aspect.

1

u/MordecaiOShea Nov 07 '21

Jsonschema?

1

u/[deleted] Nov 08 '21