JSON.CreateString
-----------------

Creates a string node with given text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [JSON](component_JSON.md) | [2.7](newinversion27.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "JSON.CreateString"; Text ) 

**MBS**( **"JSON.CreateString";** /\* Creates a string node with given text. \*/  
**$Text**) /\* The text to use.e.g. "Hello World" \*/ 

### 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")  
<small>  
Example result: "Hello World"</small>### See also

- [CURL.Perform](CURLPerform.md)
- [CURL.SetOptionPost](CURLSetOptionPost.md)
- [JS.CallFunction](JSCallFunction.md)
- [JSON.AddStringToArray](JSONAddStringToArray.md)
- [JSON.AddValueToArray](JSONAddValueToArray.md)
- [JSON.AddValueToObject](JSONAddValueToObject.md)
- [JSON.CreateStringArray](JSONCreateStringArray.md)
- [JSON.CreateStringArrayWithList](JSONCreateStringArrayWithList.md)
- [JSON.FindValueInObjectArray](JSONFindValueInObjectArray.md)

### Example Databases

- [Files/FileOperation](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileOperation.shtml#7ScriptAnchor_)
- [JavaScript/JavaScript](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/JavaScript/JavaScript.shtml#10ScriptAnchor_)
- [JSON/JSON Benchmark](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/JSON/JSON%20Benchmark.shtml#2ScriptAnchor_)
- [JSON/JSON Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/JSON/JSON%20Test.shtml#1ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 13.3](https://www.mbsplugins.de/archive/2023-07-25/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [Recursive Folder Copy Script](https://www.mbsplugins.de/archive/2021-11-12/Recursive_Folder_Copy_Script/monkeybreadsoftware_blog_filemaker)
- [CRC function in FileMaker using JavaScript](https://www.mbsplugins.de/archive/2020-01-15/CRC_function_in_FileMaker_usin/monkeybreadsoftware_blog_filemaker)
- [Comparing Base Elements Plugin to MBS FileMaker Plugin](https://www.mbsplugins.de/archive/2017-10-24/Comparing_Base_Elements_Plugin/monkeybreadsoftware_blog_filemaker)
- [Using CURL with Rosette web service](https://www.mbsplugins.de/archive/2016-01-17/Using_CURL_with_Rosette_web_se/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[JSON.CreateObjectRef](JSONCreateObjectRef.md) - [JSON.CreateStringArray](JSONCreateStringArray.md)

[HTML Version](JSONCreateString.shtml)