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.AddStringToArray
Adds a string to an array.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| JSON | 4.3 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| json | A JSON text or reference. | ["1","2"] |
| value | The new text. | "Hello" |
Result
Returns JSON code.
Description
Adds a string to an array.Same as JSON.AddItemToArray, but calls JSON.CreateString automatically for you.
With version 6, you can pass several parameters to add several entries to the array.
When adding to a JSON reference, the function returns that reference number.
Examples
Adds a string to an array:
MBS( "JSON.AddStringToArray"; "[\"1\",\"2\",\"3\"]"; "4")
Example result: ["1", "2", "3", "4"]
Adds 4 strings to an array:
MBS( "JSON.AddStringToArray"; "[]"; "1"; "2"; "3"; "4" )
Example result: ["1", "2", "3", "4"]
See also
- JSON.AddArrayToArray
- JSON.AddItemToArray
- JSON.AddNumberToArray
- JSON.AddStringToObject
- JSON.CreateArrayRef
- JSON.CreateString
Blog Entries
- News about the MBS FileMaker Plugin 10.2
- With JSON in excellent form
- MBS Filemaker Plugin, version 4.3pr8
FileMaker Magazin
Created 26th August 2014, last changed 11st December 2016
JSON.AddNumberToObject - JSON.AddStringToObject
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos