Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0    Statistic  

JSON.CreateIntegerArray

Creates a new JSON with an integer array with given values.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 4.3 Yes Yes Yes Yes Yes

MBS( "JSON.CreateIntegerArray" { ; values } )

Parameters

Parameter Description Example value
values Optional
Optional parameters for the array values. Pass one parameter per item to be added to the array.
1

Result

Returns JSON code.

Description

Creates a new JSON with an integer array with given values.
For floating point numbers, please use JSON.CreateDoubleArray.

Examples

Creates number array:

MBS( "JSON.CreateIntegerArray"; 1; 2; 3)

Example result: [1, 2, 3]

Adds an item to the object with an integer array:

MBS( "JSON.AddItemToObject"; "{}"; "test"; MBS( "JSON.CreateIntegerArray"; 1; 2; 3 ) )

Example result:
  {
"test": [1, 2, 3]
}

See also


JSON.CreateFalse   -   JSON.CreateNull

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins