Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  


Queries the value of the json.

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

MBS( "JSON.GetValue"; json )


Parameter Description Example value
json A JSON text or reference. "1.3"


Returns value or error.


Queries the value of the json.
This is same as using JSON.GetDoubleValue or JSON.GetStringValue, but automatically detect type.
For boolean value return 0 or 1.
For object or array returns JSON text.
Numbers are returned as numbers.


Returns 5 for a numeric value:

MBS( "JSON.GetValue"; "5" )

Example result: 5

Returns text:

MBS( "JSON.GetValue"; "\"Test JSON\"" )

Example result: Test JSON

Returns 1 for boolean:

MBS( "JSON.GetValue"; "true" )

Example result: 1

See also

JSON.GetType   -   JSON.Import

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins