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.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2    Statistic  

JSON.Compact

Returns compact unformatted JSON for the given JSON text.

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

MBS( "JSON.Compact"; json )

Parameters

Parameter Description Example value
json A JSON text or reference. "[1,2,3]"

Result

Returns JSON code.

Description

Returns compact unformatted JSON for the given JSON text.

Examples

Creates compact text of JSON with spaces:

MBS( "JSON.Compact"; "[1, 3, 4]" )

Example result: [1,3,4]

Compacts JSON and removes spaces:

MBS( "JSON.Compact"; "[1 , 2 , 3]" )

Example result: [1,2,3]

See also


JSON.Colorize   -   JSON.CreateArray

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins