Json methods syntax

From m204wiki
Revision as of 10:49, 2 May 2015 by DmeWiccan (talk | contribs) (Automatically generated page update)
Jump to navigation Jump to search

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:StringValue Throws InvalidJsonType

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

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

%Json = [%(Json):]True

%jsonType = Json:Type