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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

JSON.CreateValue

Creates a new value.

Component Version macOS Windows Linux Server iOS SDK
JSON 9.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JSON.CreateValue"; Value )   More

Parameters

Parameter Description Example
Value The value to pass.
Can be number, date, time, timestamp or text.
"Hello"

Result

Returns JSON or error.

Description

Creates a new value.
Convenience function to either create text or number depending on FileMaker data type.

Examples

Create with number:

MBS( "JSON.CreateValue"; 123 )

Example result: 123

Create with string:

MBS( "JSON.CreateValue"; "Hello" & ¶ & "World" & char(9) & "test" )

Example result: "Hello\rWorld\ttest"

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 14th December 2018, last changed 14th December 2018


JSON.CreateTrue - JSON.DeleteItemFromArray

💬 Ask a question or report a problem