JSON.AddArrayToArray
--------------------

Adds an array to an existing array.

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

MBS( "JSON.AddArrayToArray"; JSON; OtherJSON... ) 

**MBS**( **"JSON.AddArrayToArray";** /\* Adds an array to an existing array. \*/  
**$JSON**; /\* A JSON text or reference.e.g. \["1","2"\] \*/   
**$OtherJSON...**) /\* A second JSON text or reference.  
Can be arrays to take their items or JSON values.e.g. \["3","4"\] \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. | \["1","2"\] |
| OtherJSON... | A second JSON text or reference.   Can be arrays to take their items or JSON values. | \["3","4"\] |

### Result

Returns OK or error.

### Description

Adds an array to an existing array.  
May also add JSON items to an array.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat OtherJSON parameter as often as you need.  
### Examples

Adds arrays:

 MBS ("JSON.AddArrayToArray"; "\[1,2\]"; "\[3,4\]"; "\[5\]")  
### See also

- [JSON.AddItemToArray](JSONAddItemToArray.md)
- [JSON.AddStringToArray](JSONAddStringToArray.md)
- [JSON.AddValueToArray](JSONAddValueToArray.md)

### Release notes

- **Version 11.3**
    - Changed [JSON.GetObjectItemTree](https://www.mbsplugins.eu/JSONGetObjectItemTree.shtml), [JSON.GetObjectItemTreeRef](https://www.mbsplugins.eu/JSONGetObjectItemTreeRef.shtml), [JSON.AddArrayToArray](https://www.mbsplugins.eu/JSONAddArrayToArray.shtml) and [JSON.AddItemToArray](https://www.mbsplugins.eu/JSONAddItemToArray.shtml) to ignore empty parameters.
- **Version 10.2**
    - Added [JSON.AddArrayToArray](https://www.mbsplugins.eu/JSONAddArrayToArray.shtml) function.

### Blog Entries

- [MBS FileMaker Plugin, version 11.3pr2](https://www.mbsplugins.de/archive/2021-06-09/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [News about the MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-19/News_about_the_MBS_FileMaker_P/monkeybreadsoftware_blog_filemaker)
- [Neues MBS FileMaker Plugin 10.2](https://www.mbsplugins.de/archive/2020-05-12/Neues_MBS_FileMaker_Plugin_102/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 10.2 - More than 6200 Functions In One Plugin](https://www.mbsplugins.de/archive/2020-05-12/MBS_FileMaker_Plugin_102_-_Mor/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.2pr2](https://www.mbsplugins.de/archive/2020-04-06/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 2nd April 2020 , last changed 5th June 2021

  
[JS.UTCDateToTime](JSUTCDateToTime.md) - [JSON.AddBooleanToObject](JSONAddBooleanToObject.md)

[HTML Version](JSONAddArrayToArray.shtml)