Support for Json parsing
OperationsCreates a new parser
New(input:String)
Name | Type | Description |
---|---|---|
input | String | Json input string |
Get the current parsing error
method : public : GetError() ~ String
Type | Description |
---|---|
String | parsing error, Nil if none |
Get document root
method : public : GetRoot() ~ JsonElement
Type | Description |
---|---|
JsonElement | root Json element |
Parses a Json string
method : public : Parse() ~ Bool
Type | Description |
---|---|
Bool | true is successful, false otherwise |
Parses a Json text
function : TextToElement(text:String) ~ JsonElement
Name | Type | Description |
---|---|---|
text | String | JSON text |
Type | Description |
---|---|
JsonElement | root document element |