IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.

IG::Lib::JsonFormatter Class Reference

Formatting of JSON strings into human readable form. More...

List of all members.

Public Member Functions

string Format (string jsonString)
 Returns a formatted JSON string.

Properties

int NumIndent [get, set]
 Number of spaces used for indentation.

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).

Private Attributes

int _numIndent

Detailed Description

Formatting of JSON strings into human readable form.

$A Igor jun09;


Member Function Documentation

string IG::Lib::JsonFormatter::Format ( string  jsonString) [inline]

Returns a formatted JSON string.

Parameters:
jsonStringOriginal unformatted string.
Returns:
void IG::Lib::JsonFormatter::FormatFile ( string  pathOriginal,
string  pathConverted 
) [inline, private]

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).

Parameters:
pathOriginalPath to the original file.
pathConvertedPath to the converted file.

Member Data Documentation


Property Documentation

int IG::Lib::JsonFormatter::NumIndent [get, set]

Number of spaces used for indentation.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties Events