pretty


Description:

public static string pretty (JsonValue value, int indent = 2)

Serializes a JsonValue tree to an indented JSON string.

Example:

    string s = Json.pretty (value, 2);

Parameters:

value

the value to serialize.

indent

spaces per indentation level (default 2).

Returns:

indented JSON string.