Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
JSON.Colorize
Formats a JSON string with color.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
JSON | 8.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "JSON.Colorize"; json ) More
Parameters
Parameter | Description | Example |
---|---|---|
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
- CNContactStore.UnifiedMeContact
- CURL.FileInfos
- CURL.GetResultAsEMailList
- CURL.SetOptionURL
- DynaPDF.GetDocInfoAsJSON
- DynaPDF.GetFieldsAsJSON
- Files.AudioTags
- JSON.CreateObjectRef
- SmartCard.SplitValues
- WindowsML.Open
Release notes
- Version 8.2
- Added JSON.Colorize and JSON.ToHTML functions.
Example Databases
- Barcode/Barcode Generation JSON
- CURL/Email/IMAP Email
- DynaPDF/PDF JSON
- JSON/JSON to HTML
- Mac only/Sharing Services
- Network/Bonjour
- SmartCard/SmartCard ReadFile
- Text functions/Text Styles
- Win Only/Windows Location
- Win Only/WindowsML
Blog Entries
- FileMaker Developers in Southern California
- With JSON in excellent form
- Neues MBS FileMaker Plugin 8.3
- MBS FileMaker Plugin 8.3 released
- Colorize JSON or XML in FileMaker with line numbers
- MBS FileMaker Plugin, version 8.2pr2
- Colorize JSON in FileMaker
FileMaker Magazin
Created 6th April 2018, last changed 8th April 2018
Feedback: Report problem or ask question.

Links
MBS FileMaker tutorial videos