All Bundles

JsonParser

Support for Json parsing

Operations

New

Creates a new parser

New(input:String)
Parameters
NameTypeDescription
inputStringJson input string

GetError

Get the current parsing error

method : public : GetError() ~ String
Return
TypeDescription
Stringparsing error, Nil if none

GetRoot

Get document root

method : public : GetRoot() ~ JsonElement
Return
TypeDescription
JsonElementroot Json element

Parse

Parses a Json string

method : public : Parse() ~ Bool
Return
TypeDescription
Booltrue is successful, false otherwise

TextToElement

Parses a Json text

function : TextToElement(text:String) ~ JsonElement
Parameters
NameTypeDescription
textStringJSON text

Return
TypeDescription
JsonElementroot document element