Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3    Statistic  

JSON.GetType

Queries type of json object.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 2.7 Yes Yes Yes Yes Yes

MBS( "JSON.GetType"; json )

Parameters

Parameter Description Example value
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"; 1; 2; 3))

Example result: array

Query type of value:

MBS( "JSON.GetType"; 123 )

Example result: number

Query type of value:

MBS( "JSON.GetType"; "[]" )

Example result: array

See also


JSON.GetStringValue   -   JSON.GetValue

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins