Task: You have a compact json string and you want to understand its structure.
You can of course use this nice tool: https://b4x.com:51041/json/index.html
However the challenge is to log the "pretty" format of this json string with a single line of code.
You can of course use this nice tool: https://b4x.com:51041/json/index.html
However the challenge is to log the "pretty" format of this json string with a single line of code.
B4X:
Dim s As String = $"{"glossary":{"title":"example glossary","GlossDiv":{"GlossList":{"GlossEntry":{"GlossTerm":"Standard Generalized Markup Language","GlossSee":"markup","SortAs":"SGML","GlossDef":{"para":"A meta-markup language, used to create markup languages such as DocBook.","GlossSeeAlso":["GML","XML"]},"ID":"SGML","Acronym":"SGML","Abbrev":"ISO 8879:1986"}},"title":"S"}}}"$