JSON.GetIntegerValue
--------------------

Queries integer value of the JSON node.

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

MBS( "JSON.GetIntegerValue"; JSON ) 

**MBS**( **"JSON.GetIntegerValue";** /\* Queries integer value of the JSON node. \*/  
**$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 the value.

### Description

Queries integer value of the JSON node.  
### Examples

Queries integer value:

 MBS ( "JSON.GetIntegerValue"; "3")  
### Release notes

- **Version 13.4**
    - Changed [JSON.GetStringValue](https://www.mbsplugins.eu/JSONGetStringValue.shtml), [JSON.GetBooleanValue](https://www.mbsplugins.eu/JSONGetBooleanValue.shtml), [JSON.GetDoubleValue](https://www.mbsplugins.eu/JSONGetDoubleValue.shtml), [JSON.GetIntegerValue](https://www.mbsplugins.eu/JSONGetIntegerValue.shtml) and [JSON.GetValue](https://www.mbsplugins.eu/JSONGetValue.shtml) to return empty result if called with empty value.

### Blog Entries

- [MBS FileMaker Plugin, version 13.4pr1](https://www.mbsplugins.de/archive/2023-08-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 3th February 2016

  
[JSON.GetDoubleValue](JSONGetDoubleValue.md) - [JSON.GetObjectItem](JSONGetObjectItem.md)

[HTML Version](JSONGetIntegerValue.shtml)