| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
JSON.ReplaceItemInObject
Replaces an item in an object with new item.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| JSON | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JSON.ReplaceItemInObject"; JSON; Name; json2 ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. | {"key": "value"} |
| Name | The name of the Object property. | "key" |
| json2 | The JSON text for the item. | "Hello" |
Result
Returns JSON code.
Description
Replaces an item in an object with new item.Examples
Replace key with new Value:
MBS( "JSON.ReplaceItemInObject"; "{\"key\":\"value\"}"; "key"; "\"Hello\"" )
Example result:
{ "key": "Hello" }
Example result:
{ "key": "Hello" }
See also
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 26th August 2014, last changed 11st December 2016