MyChat Scripts Engine: working with JSON
In this section you can find functions to work with JSON text files.
Reading
get the Boolean value of an array element by the index; |
|
get the date/time value of an array element by the index; |
|
get the real value of the array element by index; |
|
get the integer value of an array element by the index; |
|
get the text value of an array element by the index; |
|
get the value of the Boolean key; |
|
get the date/time value of a key; |
|
get the fractional value of the key; |
|
get the value of an integer key; |
|
get the value of a string key. |
Writing
set the Boolean value of an array element by the index; |
|
set the date/time value of an array element by the index; |
|
save the fractional value of the array element by index; |
|
set the integer value of an array element by the index; |
|
set the string value of an array element by the index; |
|
create/overwrite the value of the Boolean key; |
|
create/overwrite the value of the date/time key; |
|
create/overwrite the fractional value of the key; |
|
create/overwrite the value of the integer key; |
|
create/overwrite the value of the string key. |
General purpose
get the size of a JSON array; |
|
create a specified size array; |
|
check if the key with a specified name exists in JSON object; |
|
check if the JSON object syntax is correct; |