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.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

JSON.Colorize

Formats a JSON string with color.

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

MBS( "JSON.Colorize"; json )

Parameters

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

Result

Returns formatted text or error.

Description

Formats a JSON string with color.
This colorizes an existing JSON text to show to user.
Keys get blue, text value purple, numbers and others orange and brackets black.

Text is returned only with colors. You can apply text font and font size with normal FileMaker functions.
Processing time is linear to length, so should be faster than custom functions.

Examples

Colorize a field:

Set Field [ Data::JSON ; MBS("JSON.Colorize"; Data::JSON) ]

See also

Example Databases

Created 6th April 2018, last changed 8th April 2018


JSON.Clone   -   JSON.Compact

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins