JSON.GetType
------------

Queries type of json object.

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

MBS( "JSON.GetType"; JSON ) 

**MBS**( **"JSON.GetType";** /\* Queries type of json object. \*/  
**$JSON**) /\* A JSON text or reference.e.g. "\[1,2,3\]" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| JSON | A JSON text or reference. | "\[1,2,3\]" |

### Result

Returns type: false, true, null, string, array, object or number.

### Description

Queries type of json object.  
### Examples

Creates array and queries type:

 MBS ("JSON.GetType"; MBS ( "[JSON.CreateDoubleArray](JSONCreateDoubleArray.md)"; 1; 2; 3))  
<small>  
Example result: array</small>Query type of value:

 MBS ( "JSON.GetType"; 123 )  
<small>  
Example result: number</small>Query type of value:

 MBS ( "JSON.GetType"; "\[\]" )  
<small>  
Example result: array</small>### See also

- [JSON.CreateDoubleArray](JSONCreateDoubleArray.md)

### 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 18](https://filemaker-magazin.de/neuigkeit/4110-Appetithappen-FMM_202005)

This function checks for a license.

Created 18th August 2014 , last changed 11st December 2016

  
[JSON.GetStringValue](JSONGetStringValue.md) - [JSON.GetValue](JSONGetValue.md)

[HTML Version](JSONGetType.shtml)