How to display JSON response string with formatting something similar to https://jsonformatter.org/json-parser
?
For example: How to display following code in textview ?
{
"age":100,
"name":"mkyong.com",
"messages":["msg 1","msg 2","msg 3"]
}
P.S: Preferably color formatted.
In short ..
1.How to format and display JSON string ?
2.How to format and display Java code ?