Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
JSON.CreateObject
Creates a new empty object node.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| JSON | 2.7 | Yes | Yes | Yes | Yes | Yes |
Parameters
none
Result
Returns JSON code.
Description
Creates a new empty object node.Examples
Creates empty object:
MBS( "JSON.CreateObject" )
Example result: {}
Build nested objects:
Set Variable [$j1; MBS( "JSON.CreateObject") ]
Set Variable [$j2; MBS( "JSON.AddStringToObject"; $j1; "name"; "" ) ]
Set Variable [$j3; MBS( "JSON.AddStringToObject"; $j2; "record_type"; "MX" ) ]
Display Dialog ["JSON"; $j3]
Set Variable [$j4; MBS( "JSON.CreateObject") ]
Set Variable [$j5; MBS( "JSON.AddItemToObject"; $j4; "record"; $j3 ) ]
Display Dialog ["JSON"; $j4]
See also
- JSON.AddItemToObject
- JSON.AddStringToObject
- JSON.CreateArrayRef
- JSON.CreateObjectRef
- JSON.GetObjectItem
- MapView.Snapshot
Example Databases
Blog Entries
FileMaker Magazin
Created 18th August 2014, last changed 11st December 2016
JSON.CreateNumber - JSON.CreateObjectRef
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins