Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Adds a new entry to the object with the given name and value.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JSON | 14.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
json | A JSON text or reference. | {"key": "value"} |
Name... | The name of the Object property. | "length" |
Value... | The text value to add. | "Hello |
Returns JSON code.
Add values to an object:
MBS( "JSON.AddValueToObject"; "{}"; "Hello"; "World"; "test"; 123; "a"; "abc")
Example result:
{
"Hello": "World",
"test": 123,
"a": "abc"
}
This function checks for a license.
Created 20th February 2024, last changed 20th February 2024