| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
JSON.Clone
Creates a clone of the json.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| JSON | 6.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JSON.Clone"; JSON ) More
Parameters
| Parameter | Description | Example |
|---|---|---|
| JSON | The JSON text or reference number. | "[1,2,3]" |
Result
Returns reference number or error.
Description
Creates a clone of the json.A new reference number with a new json object or array behind and all content copied.
Examples
Try the clone function:
Let ( [
j = MBS("JSON.Parse"; "{\"Hello\": \"World\"}");
// now clone this to a new ID
c = MBS("JSON.Clone"; j);
s = MBS("JSON.Format"; c);
r = MBS("JSON.Release"; c);
r = MBS("JSON.Release"; j)
]; j & " -> " & c & " -> " & ¶ & s )
Example result:
51005 -> 51006 ->
{
"Hello": "World"
}
j = MBS("JSON.Parse"; "{\"Hello\": \"World\"}");
// now clone this to a new ID
c = MBS("JSON.Clone"; j);
s = MBS("JSON.Format"; c);
r = MBS("JSON.Release"; c);
r = MBS("JSON.Release"; j)
]; j & " -> " & c & " -> " & ¶ & s )
Example result:
51005 -> 51006 ->
{
"Hello": "World"
}
See also
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 5th March 2016, last changed 29th September 2025