|
IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Formatting of JSON strings into human readable form. More...
Public Member Functions | |
| string | Format (string jsonString) |
| Returns a formatted JSON string. More... | |
Properties | |
| int | NumIndent [get, set] |
| Number of spaces used for indentation. More... | |
Private Member Functions | |
| void | FormatFile (string pathOriginal, string pathConverted) |
| Reads a JSON string from a file, formats it, and writes it to the specified file (which can be the same as the original one). More... | |
Private Attributes | |
| int | _numIndent |
Formatting of JSON strings into human readable form.
$A Igor jun09;
|
inline |
Returns a formatted JSON string.
| jsonString | Original unformatted string. |
References JsonPrettyPrinterPlus.JsonPrettyPrinter.PrettyPrint(), and JsonPrettyPrinterPlus.JsonPrettyPrinterInternals.JsonPPStrategyContext.SpacesPerIndent.
Referenced by IG.Lib.SerializerJson.Serialize< T >().
|
inlineprivate |
Reads a JSON string from a file, formats it, and writes it to the specified file (which can be the same as the original one).
| pathOriginal | Path to the original file. |
| pathConverted | Path to the converted file. |
|
private |
|
getset |
Number of spaces used for indentation.