The application receives a JSON file, already validated, and should display it to the user who is a programmer.
I would like to display the JSON as in this validation site and beautify JSON .
So I wanted this JSON:
{"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"}}}}
}
It was displayed as follows to make it more readable for the programmer, like this:
Note that there is a possibility of expanding or not the node.
Does anyone know of any applications that do this?
Note: I'm using php.