Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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.CurrentMatch