Json methods syntax

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The syntax for each of the Json class methods is shown below.

Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Json methods.

[%number =] json:Add( json) Throws InvalidJsonType

%json = [%(Json):]Array[( [itemList])]

%json = [%(Json):]Boolean( boolean)

%boolean = json:BooleanValue Throws InvalidJsonType

%outJson = json:Copy

%count = json:Count Throws InvalidJsonType

%outJson = json:DeepCopy

[%number =] json:Delete( index) Throws InvalidJsonType

%json = [%(Json):]False

[%number =] json:Insert( number, json) Throws InvalidJsonType

%currentJson = json:Item( index) json:Item( index) = newJson Throws InvalidJsonType

%outJson = json:ItemByNumber( number) Throws InvalidJsonType

%unicode = json:NameByNumber( number) Throws InvalidJsonType

%json = [%(Json):]Number( number)

%number = json:NumberByName( unicode)

%number = json:NumberValue Throws InvalidJsonType

%json = [%(Json):]Object

%json = [%(Json):]Parse( unicode) Throws JsonParseError

%json = [%(Json):]String( unicode)

%unicode = json:Stringify[( [Indent= number])] Throws JsonCircularReference

%unicode = json:StringValue Throws InvalidJsonType

%unicode = json:ToString[( [Indent= number])] Throws JsonCircularReference

%json = [%(Json):]True

%jsonType = json:Type