JSON.CreateStringArray
----------------------

Creates a new JSON with a string array with given values.

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

MBS( "JSON.CreateStringArray" { ; Value... } ) 

**MBS**( **"JSON.CreateStringArray";** /\* Creates a new JSON with a string array with given values. \*/  
**$Value...**) /\* Optional; The string value for the array.  
Pass one parameter per item to be added to the array.e.g. "Hello" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Value... | The string value for the array.   Pass one parameter per item to be added to the array. | "Hello" | Optional |

### Result

Returns JSON code.

### Description

Creates a new JSON with a string array with given values.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat Value parameter as often as you need.  
### Examples

Creates string array:

 MBS ( "JSON.CreateStringArray"; "Hello"; "World")  
<small>  
Example result:   
\["Hello" , "World" \] </small>### See also

- [JSON.CreateDoubleArray](JSONCreateDoubleArray.md)
- [JSON.CreateIntegerArray](JSONCreateIntegerArray.md)
- [JSON.CreateString](JSONCreateString.md)
- [JSON.CreateStringArrayWithList](JSONCreateStringArrayWithList.md)

### Example Databases

- [JSON/JSON Test](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/JSON/JSON%20Test.shtml#1ScriptAnchor_)

### Blog Entries

- [With JSON in excellent form](https://www.mbsplugins.de/archive/2019-11-16/With_JSON_in_excellent_form/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2020, Seite 17](https://filemaker-magazin.de/neuigkeit/4110-Appetithappen-FMM_202005)

This function checks for a license.

Created 18th August 2014 , last changed 5th June 2021

  
[JSON.CreateString](JSONCreateString.md) - [JSON.CreateStringArrayWithList](JSONCreateStringArrayWithList.md)

[HTML Version](JSONCreateStringArray.shtml)