JSON.Release
------------

Frees a json reference number.

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

MBS( "JSON.Release"; JSONRef ) 

**MBS**( **"JSON.Release";** /\* Frees a json reference number. \*/  
**$JSONRef**) /\* The JSON reference number.e.g. $json \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSONRef | The JSON reference number. | $json |

### Result

Returns OK or error.

### Description

Frees a json reference number.  
Such reference numbers are returned by [JSON.Parse](JSONParse.md), [JSON.CreateArrayRef](JSONCreateArrayRef.md), [JSON.CreateObjectRef](JSONCreateObjectRef.md), [JSON.GetArrayItem](JSONGetArrayItem.md), [JSON.GetObjectItem](JSONGetObjectItem.md), [JSON.GetObjectItemTreeRef](JSONGetObjectItemTreeRef.md) or [JSON.SetVariables](JSONSetVariables.md).  
### Examples

Parse some JSON, display it formatted and release:

 Set Variable \[$json ; Value:MBS ( "[JSON.Parse](JSONParse.md)"; "{\\"Hello\\": \\"World\\"}" )\]  
Show Custom Dialog \[$json ; MBS ("[JSON.Format](JSONFormat.md)"; $json )\]  
Set Variable \[$r ; Value:MBS ( "JSON.Release"; $json )\]  
### See also

- [Java.Release](JavaRelease.md)
- [JS.Release](JSRelease.md)
- [JSON.GetArraySize](JSONGetArraySize.md)
- [JSON.GetObjectItem](JSONGetObjectItem.md)
- [JSON.GetObjectItemTree](JSONGetObjectItemTree.md)
- [JSON.GetPathItem](JSONGetPathItem.md)
- [JSON.ReleaseAll](JSONReleaseAll.md)
- [JSON.Replace](JSONReplace.md)
- [MapView.Snapshot](MapViewSnapshot.md)
- [SSH.Release](SSHRelease.md)

### Example Databases

- [CURL/Email/IMAP Email List](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email%20List.shtml#1ScriptAnchor_)
- [CURL/Email/IMAP Email](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/Email/IMAP%20Email.shtml#1ScriptAnchor_)
- [CURL/WebServices/Query IP and Country](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CURL/WebServices/Query%20IP%20and%20Country.shtml#1ScriptAnchor_)
- [JSON/JSON Benchmark](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/JSON/JSON%20Benchmark.shtml#2ScriptAnchor_)
- [Mac and iOS/Machine Learning/Core Image Detection](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Machine%20Learning/Core%20Image%20Detection.shtml#1ScriptAnchor_)
- [Mac and iOS/MapKit/MapKit Snapshots](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/MapKit/MapKit%20Snapshots.shtml#1ScriptAnchor_)
- [Mac only/ImageCapture/Camera Import](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/ImageCapture/Camera%20Import.shtml#5ScriptAnchor_)
- [Win Only/WindowsML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Win%20Only/WindowsML.shtml#6ScriptAnchor_)

### Blog Entries

- [FileMaker and MongoDB](https://www.mbsplugins.de/archive/2023-03-20/FileMaker_and_MongoDB/monkeybreadsoftware_blog_filemaker)
- [With JSON in excellent form](https://www.mbsplugins.de/archive/2019-11-16/With_JSON_in_excellent_form/monkeybreadsoftware_blog_filemaker)
- [Fun with While function in FileMaker](https://www.mbsplugins.de/archive/2019-07-22/Fun_with_While_function_in_Fil/monkeybreadsoftware_blog_filemaker)
- [Face detection via CoreImage in FileMaker](https://www.mbsplugins.de/archive/2017-07-23/Face_detection_via_CoreImage_i/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.0pr6](https://www.mbsplugins.de/archive/2016-01-13/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

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

This function is free to use.

Created 5th January 2016 , last changed 12nd August 2025

  
[JSON.Query](JSONQuery.md) - [JSON.ReleaseAll](JSONReleaseAll.md)

[HTML Version](JSONRelease.shtml)