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

JString
Derived from JValue


Class to store string value in JSON format. Once JString instance is created, its value can't be changed.


Constructors

public JString (string stringValue)Creates new instance of JString object.

Methods

public string AsString ()Get value of this JSON string as c# system string.
public override bool Equals (object anotherObject)Test if another object equals to this object.

Constructors

public JString (string stringValue)

Creates new instance of JString object.

Parameter can't be null. If you wish to add null to JSON or JArray object, create new JNull() and add that one.

ParametersstringValueC# string value to be stored in this object.

ExceptionsJArgumentNullExceptionIf parameter is null.


Methods

public string AsString ()

Get value of this JSON string as c# system string.

Returnsc# string value, can not be null.


public override bool Equals (object anotherObject)

Test if another object equals to this object. Always returns false if parameter object is null or it is not instance of JString. Two JString objects are equal if both contains exactly same string.

ParametersanotherObjectAnother object that is compared to this one.

ReturnsTrue if objects are equal, false otherwise.