Public classes


Scripts/

   JArray
   JBoolean
   JNull
   JNumber
   JSON
   JString
   JValue

Scripts/Attributes/

      ExcludeFromJSONSerializeAttribute
      IncludeToJSONSerializeAttribute

Scripts/Exceptions/

      DeserializeException
      JArgumentException
      JArgumentNullException
      JArrayIndexOutOfRangeException
      JNumberFormatException
      JNumberOverflowException
      JSONKeyAlreadyExistsException
      JSONKeyNotFoundException
      JValueNullException
      JValueTypeException
      ParseException
      ProtectedException
      SerializeException
      UnknownObjectTypeException

Scripts/Settings/

      CreateStringSettings
      DeserializeSettings
      ParseStringSettings
      SerializeSettings


Introduction page

CreateStringSettings


Settings that can be used to make output of creating JSON-formatted string different.


Properties

public bool ColoredOutputSets output to be colored, using HTML style rich text tags.
public bool EscapeForwardSlashesSets forward slashes to escaped or not.
public bool HumanReadableSets output to be more human readable.
public int IndentSpaceCountSets how many spaces are used for indent.
public bool IndentUsingTabSets whatever indent of human readable output should use tabs.
public NewLineTypes NewLineSets type of linefeeds in human readable output.

Properties

public bool ColoredOutput

Sets output to be colored, using HTML style rich text tags.

If this setting is used, resulting string can NOT be parsed back to JSON object!

ValueTrue to have color tags in output. Default is false.


public bool EscapeForwardSlashes

Sets forward slashes to escaped or not. TotalJSON default is false since escaped forward slashes could cause problems if included to C# code. However, if resulting JSON string is included to for example HTML or JavaScript, it is better to set forward slash escaping on.

ValueTrue to escape forward slashes ("\/"), false to not ("/").


public bool HumanReadable

Sets output to be more human readable. Linefeeds and indentations are added to output to make it easier for humans to read and edit. Output is still completely valid JSON that can be parsed back to JSON or JArray object.

ValueTrue to make output human readable. Default is false.


public int IndentSpaceCount

Sets how many spaces are used for indent. Can be 0 or any positive integer.

This setting have effect only if 'HumanReadable' is true and 'IndentUsingTab' is false.

ValueAmount of spaces to use for indent. Default is 4.


public bool IndentUsingTab

Sets whatever indent of human readable output should use tabs. If false, spaces are used instead of tab.

This setting have effect only if 'HumanReadable' is true.

ValueTrue to use tabs for indent. Default is true.


public NewLineTypes NewLine

Sets type of linefeeds in human readable output.

This setting have effect only if 'HumanReadable' is true.

ValueType of linefeeds, one of values from NewLineTypes. Default is EnvironmentDefault.