Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
JSON.CreateIntegerArray
Creates a new JSON with an integer array with given values.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| JSON | 4.3 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| values | Optional parameters for the array values. Pass one parameter per item to be added to the array. | 1 | Optional |
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
Blog Entries
FileMaker Magazin
Created 26th August 2014, last changed 11st December 2016
JSON.CreateFalse - JSON.CreateNull
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos