Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
JSON.AddValueToArray
Adds a value to an array.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JSON | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JSON.AddValueToArray"; JSON; Value... ) More
Parameters
Parameter | Description | Example |
---|---|---|
JSON | A JSON text or reference. | ["1","2"] |
Value... | The new text. | "Hello" |
Result
Returns JSON code.
Description
Adds a value to an array.Same as JSON.AddItemToArray, but calls JSON.CreateString or JSON.CreateNumber automatically for you.
When adding to a JSON reference, the function returns that reference number.
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Value parameter as often as you need.
Examples
Add values to an array:
MBS( "JSON.AddValueToArray"; "[]"; 1; 2; 3; "Hello"; true )
Example result:
[1, 2, 3, "Hello", 1]
See also
- JSON.AddArrayToArray
- JSON.AddItemToArray
- JSON.AddNumberToArray
- JSON.CreateNumber
- JSON.CreateString
- JSON.FindValueInArray
Release notes
- Version 14.1
- Added JSON.AddValueToArray and JSON.AddValueToObject functions.
Blog Entries
- New in MBS FileMaker Plugin 14.1
- Neues MBS Plugin 14.1 für Claris FileMaker
- MBS Plugin 14.1 for Claris FileMaker
- MBS FileMaker Plugin, version 14.1pr4
This function checks for a license.
Created 20th February 2024, last changed 20th February 2024
