UtilJsonBeautifyJson Method
Beautifies the contents of a unbeautified JSON string.
Namespace: DevCase.Core.DataProcessing.JsonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string BeautifyJson(
string json,
string indentString = ""
)
Public Shared Function BeautifyJson (
json As String,
Optional indentString As String = ""
) As String
Dim json As String
Dim indentString As String
Dim returnValue As String
returnValue = UtilJson.BeautifyJson(json,
indentString)
public:
static String^ BeautifyJson(
String^ json,
String^ indentString = L""
)
static member BeautifyJson :
json : string *
?indentString : string
(* Defaults:
let _indentString = defaultArg indentString ""
*)
-> string
No code example is currently available or this language may not be supported.
- json String
-
The source (unbeautified) JSON string.
- indentString String (Optional)
-
The string used to write the indentation blank space.
By default the tabulation char is used, you can change this value to " " (four white spaces) or whatever.
String
The resulting beautified JSON string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim json As String = <a>{"colorsArray":[{"colorName":"red","hexValue":"#f00"},{"colorName":"green","hexValue":"#0f0"}]}</a>.Value
Dim beautified As String = BeautifyJson(json)
MessageBox.Show(beautified)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.