JSON.ClearVariables
-------------------

Clears the variables.

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

MBS( "JSON.ClearVariables"; VariableList ) 

**MBS**( **"JSON.ClearVariables";** /\* Clears the variables. \*/  
**$VariableList**) /\* The list of variables.e.g. "test" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| VariableList | The list of variables. | "test" |

### Result

Returns OK or error.

### Description

Clears the variables.  
Pass the list returned from [JSON.SetVariables](JSONSetVariables.md) to clear the variables list.  
### Examples

Set some variables using JSON:

 Set Variable \[ $Variables ; Value: MBS ("[JSON.SetVariables](JSONSetVariables.md)"; Table::JSON Insert) \]  
\# @variable $FirstName , $LastName , $Birthday   
Show Custom Dialog \[ "Names" ; $FirstName \]  
Set Variable \[ $r ; Value: MBS ("JSON.ClearVariables"; $Variables ) \]  
### See also

- [JSON.SetVariables](JSONSetVariables.md)
- [XML.ClearVariables](XMLClearVariables.md)

### Release notes

- **Version 15.0**
    - Added [JSON.SetVariables](https://www.mbsplugins.eu/JSONSetVariables.shtml) and [JSON.ClearVariables](https://www.mbsplugins.eu/JSONClearVariables.shtml).

### Example Databases

- [JSON/JSON Insert and Update](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/JSON/JSON%20Insert%20and%20Update.shtml#8ScriptAnchor_)

### Blog Entries

- [New in MBS FileMaker Plugin 15.0](https://www.mbsplugins.de/archive/2025-01-21/New_in_MBS_FileMaker_Plugin_15/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 15.0 für Claris FileMaker](https://www.mbsplugins.de/archive/2025-01-14/Neues_MBS_Plugin_150_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 15.0 for Claris FileMaker](https://www.mbsplugins.de/archive/2025-01-14/MBS_Plugin_150_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.6pr1](https://www.mbsplugins.de/archive/2024-12-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 25th November 2024 , last changed 25th November 2024

  
[JSON.ArraySlice](JSONArraySlice.md) - [JSON.Clone](JSONClone.md)

[HTML Version](JSONClearVariables.shtml)