Json methods syntax

From m204wiki
Revision as of 19:03, 15 August 2017 by DmeWiccan (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:Stringify[( [Indent= number])] Throws JsonCircularReference

%unicode = json:StringValue Throws InvalidJsonType

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

%json = [%(Json):]True

%jsonType = json:Type