If I create a JSON object and print it on the console:
LJSONObject:= TJSONObject.Create;
LJSONObject.AddPair(TJSONPair.Create(TJSONString.Create('Hello'), TJSONString.Create('World')));
LJSONObject.AddPair(TJSONPair.Create(TJSONString.Create('Ciao'), TJSONString.Create('Mondo')));
Writeln(LJSONObject.ToString);
the result is:
{"Hello":"World", "Ciao":"Mondo"}
How I can print the result with nicer indentation, like this?
{
"Hello":"World",
"Ciao":"MOndo"
}