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: 8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3    Statistic  

JSON.Sort

Sorts the JSON array/object.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 9.3 Yes Yes Yes Yes Yes
MBS( "JSON.Sort"; json )   More

Parameters

Parameter Description Example value
json A JSON text or reference. {"key":"value"}

Result

Returns JSON code.

Description

Sorts the JSON array/object.

Examples

Sort an array of numbers:

MBS( "JSON.Sort"; "[9,4,3.2,3.1,123]" )

Sort text values:

MBS( "JSON.Sort"; "[\"123\", \"Hello\", \"FileMaker\", \"World\"]" )

Sort keys in object:

MBS( "JSON.Sort"; "{\"last\":123, \"first\":456}" )

Created 15th June 2019, last changed 15th June 2019


JSON.SetPathItem   -   JSON.ToHTML

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins