Legal Notice, Privacy Policy

Impressum, Datenschutzerklärung

Cerberus X Documentation

Class JsonParser

The json parser is used to translate a JSON string to json. More...

Declarations

Constructors
New ( json:String ) New json parser object parsing json.
Methods
ParseValue : JsonValue () Used to return the value of the root object.

Detailed Discussion

The json parser is used to translate a JSON string to json.


Constructors Documentation

Method New ( json:String )

New json parser object parsing json.


Methods Documentation

Method ParseValue : JsonValue ()

Used to return the value of the root object.

Local json := New JsonParser("42").ParseValue()
Print json.Type() ' prints 4 (equals to JsonValue.NUMBERTYPE)
Print json.IntValue() ' prints 42