Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Variable.AppendJSON
Appends a JSON to the JSON array in the variable.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Variable | 15.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Variable.AppendJSON"; Name; JSON ) More
Parameters
Parameter | Description | Example |
---|---|---|
Name | the name of the variable | "test" |
JSON | The JSON value to add to the array in the variable. | "Hello" |
Result
Returns new JSON or error.
Description
Appends a JSON to the JSON array in the variable.If the variable doesn't exist, it will be created.
Examples
Append a JSON to a variable:
MBS("Variable.AppendJSON"; "list"; JSONSetElement ( "{}"; "test" ; 123 ; JSONNumber ))
Example result:
[
{
"test": 123
}
]
See also
Release notes
- Version 15.2
- Added Variable.AppendJSON and Variable.PopJSON functions.
Blog Entries
This function checks for a license.
Created 15th April 2025, last changed 15th April 2025
