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

JSON.CreateString

Creates a string node with given text.

Component Version macOS Windows Linux Server iOS SDK
JSON 2.7 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JSON.CreateString"; Text )   More

Parameters

Parameter Description Example
Text The text to use. "Hello World"

Result

Returns JSON code.

Description

Creates a string node with given text.

The text is escaped. Text encoding is UTF-8 since JSON is always UTF-8.

Examples

Creates new text node:

MBS( "JSON.CreateString"; "Hello World")

Example result: "Hello World"

See also

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 7th June 2024


JSON.CreateObjectRef - JSON.CreateStringArray