JSONParser.kl

Interfaces

JSONValue (interface)

バージョン 1.13.0 で追加.

Generic interface used for any JSON value. The JSONValue interface has no methods associated.

JSONValue JSONValue JSONValue JSONArrayValue JSONArrayValue JSONArrayValue->JSONValue JSONBooleanValue JSONBooleanValue JSONBooleanValue->JSONValue JSONDictValue JSONDictValue JSONDictValue->JSONValue JSONNumberValue JSONNumberValue JSONNumberValue->JSONValue JSONStringValue JSONStringValue JSONStringValue->JSONValue

Functions

String write ? ( in Integer indentation, in String indent )

Functions in detail

String JSONValue.write? ( in Integer indentation, in String indent )

Types

JSONBooleanValue (object)

バージョン 1.13.0 で追加.

A specialized JSONValue for Boolean values.

Methods

  JSONBooleanValue ( in Boolean value )
  JSONBooleanValue ( in JSONBooleanValue other )
  JSONBooleanValue ()
  appendDesc ? ( io String string )
JSONBooleanValue clone ? ()
Boolean toBoolean ? ()

JSONStringValue (object)

バージョン 1.13.0 で追加.

A specialized JSONValue for string values.

Methods

  JSONStringValue ( in JSONStringValue other )
  JSONStringValue ( in String value )
  JSONStringValue ()
  appendDesc ? ( io String string )
JSONStringValue clone ? ()
String toString ? ()

JSONArrayValue (object)

バージョン 1.13.0 で追加.

A specialized JSONValue for arrays.

Methods

  JSONArrayValue ( in JSONArrayValue other )
  JSONArrayValue ()
  add ! ( in JSONValue value )
  addBoolean ! ( in Boolean value )
  addInteger ! ( in Integer value )
  addScalar ! ( in Scalar value )
  addString ! ( in String value )
  appendDesc ? ( io String string )
JSONArrayValue clone ? ()
JSONValue get ? ( in Integer index )
Boolean getBoolean ? ( in Integer index )
Color getColor ? ( in Integer index )
Integer getInteger ? ( in Integer index )
Scalar getScalar ? ( in Integer index )
String getString ? ( in Integer index )
Vec2 getVec2 ? ( in Integer index )
Vec3 getVec3 ? ( in Integer index )
  merge ! ( in JSONArrayValue other )
  resize ! ( in Size size )
  set ! ( in Integer index, in JSONValue value )
  setBoolean ! ( in Integer index, in Boolean value )
  setColor ! ( in Integer index, in Color value )
  setInteger ! ( in Integer index, in Integer value )
  setScalar ! ( in Integer index, in Scalar value )
  setString ! ( in Integer index, in String value )
  setVec2 ! ( in Integer index, in Vec2 value )
  setVec3 ! ( in Integer index, in Vec3 value )
Size size ? ()
String[] toStringArray ? ()

JSONDictValue (object)

バージョン 1.13.0 で追加.

A specialized JSONValue for dictionaries.

Members

JSONValue[String] values  

Methods

  JSONDictValue ( in Color value )
  JSONDictValue ( in JSONDictValue other )
  JSONDictValue ( in Mat33 value )
  JSONDictValue ( in Mat44 value )
  JSONDictValue ( in Quat value )
  JSONDictValue ( in RGB value )
  JSONDictValue ( in RGBA value )
  JSONDictValue ( in Vec2 value )
  JSONDictValue ( in Vec3 value )
  JSONDictValue ( in Vec4 value )
  JSONDictValue ( in Xfo value )
  JSONDictValue ()
  appendDesc ? ( io String string )
JSONDictValue clone ? ()
JSONValue get ? ( in String key )
Boolean getBoolean ? ( in String key )
Color getColor ? ( in String key )
Integer getInteger ? ( in String key )
Mat44 getMat44 ? ( in String key )
Quat getQuat ? ( in String key )
Scalar getScalar ? ( in String key )
String getString ? ( in String key )
Vec2 getVec2 ? ( in String key )
Vec3 getVec3 ? ( in String key )
Vec4 getVec4 ? ( in String key )
Xfo getXfo ? ( in String key )
Boolean has ? ( in String key )
  merge ! ( in JSONDictValue other )
  set ! ( in String key, in JSONValue value )
  setBoolean ! ( in String key, in Boolean value )
  setColor ! ( in String key, in Color value )
  setInteger ! ( in String key, in Integer value )
  setMat44 ! ( in String key, in Mat44 value )
  setQuat ! ( in String key, in Quat value )
  setScalar ! ( in String key, in Scalar value )
  setString ! ( in String key, in String value )
  setVec2 ! ( in String key, in Vec2 value )
  setVec3 ! ( in String key, in Vec3 value )
  setVec4 ! ( in String key, in Vec4 value )
  setXfo ! ( in String key, in Xfo value )
Color toColor ? ()
Mat33 toMat33 ? ()
Mat44 toMat44 ? ()
Quat toQuat ? ()
RGB toRGB ? ()
RGBA toRGBA ? ()
Vec2 toVec2 ? ()
Vec3 toVec3 ? ()
Vec4 toVec4 ? ()
Xfo toXfo ? ()

JSONNumberValue (object)

バージョン 1.13.0 で追加.

A specialized JSONValue for numeric values.

Methods

  JSONNumberValue ( in Integer value )
  JSONNumberValue ( in JSONNumberValue other )
  JSONNumberValue ( in Scalar value )
  JSONNumberValue ()
  appendDesc ? ( io String string )
JSONNumberValue clone ? ()
Integer toInteger ? ()
Scalar toScalar ? ()

JSONDoc (object)

バージョン 1.13.0 で追加.

The main JSON document. It provides functionality for encoding and parsing of JSON strings.

Members

JSONDictValue root  
Boolean valid  

Methods

  JSONDoc ( in JSONDoc other )
  JSONDoc ()
  appendDesc ? ( io String string )
JSONDoc clone ? ()
  merge ! ( in JSONDoc other )
Boolean parse ! ( in String json )
String write ? ( in Integer indentation )
String write ? ()