wwJsonSerializer::FormatJson

Formats a raw JSON string to be indented for easier reading and display.

Produces pretty-formatted, indented JSON from a JSON string.

Generated formatted JSON looks like this:

{
  "key1": "test value",
  "key2": "value 2",
  "key3": {
    "Address": "32 kaiea",
    "Phone": "123-123-1231"
  }
}
o.FormatJson(lcJson)

Return Value

Indented JSON

Parameters

lcJson
Any valid JSON string

Remarks

Requires .NET and wwDotnetBridge.dll, NewtonSoft.Json.dll


See also:

Class wwJsonSerialize

© West Wind Technologies, 2023 • Updated: 01/10/19
Comment or report problem with topic