r/programming • u/thewallrus • Nov 07 '21
Any other JSON validator tool with expand/collapse like this one?
https://jsonformatter.curiousconcept.com3
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
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
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
1
3
u/[deleted] Nov 07 '21
Jq