Our JSON serialize/to_String apis output the JSON data in a single line string, for example:
{"item0":"value0","item1":["array_ele0", "array_ele1"]}
IT will be good to have a custom option to output this data with indentation (tabs, spaces and newlines), so that they are in a human readble format. This will be helpful for debugging purposes too.
All the other JSON libraries that we have investigated (Json-cpp, libjson, json.NET) have this option of styled writer/indented output. Here is how the above json string would look like with indentation:
{
"item0":"value0",
"item1":[
"array_ele0",
"array_ele1"
]
}
{"item0":"value0","item1":["array_ele0", "array_ele1"]}
IT will be good to have a custom option to output this data with indentation (tabs, spaces and newlines), so that they are in a human readble format. This will be helpful for debugging purposes too.
All the other JSON libraries that we have investigated (Json-cpp, libjson, json.NET) have this option of styled writer/indented output. Here is how the above json string would look like with indentation:
{
"item0":"value0",
"item1":[
"array_ele0",
"array_ele1"
]
}