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.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
JSON.Format
Returns pretty printed JSON for the given JSON text.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| JSON | 4.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| json | A JSON text or reference. | "[1,2,3]" |
Result
Returns JSON code.
Description
Returns pretty printed JSON for the given JSON text.Examples
Format some object:
Set Variable [$json; Value:MBS( "JSON.Format"; "{\"Hello\": \"World\"}" )]
Show Custom Dialog [$json]
Parse some JSON, display it formatted and release:
Set Variable [$json; Value:MBS( "JSON.Parse"; "{\"Hello\": \"World\"}" )]
Show Custom Dialog [$json; MBS("JSON.Format"; $json)]
Set Variable [$r; Value:MBS( "JSON.Release"; $json)]
See also
- JSON.AddBooleanToObject
- JSON.AddItemToObject
- JSON.AddNumberToArray
- JSON.CreateArrayRef
- JSON.CreateObjectRef
- JSON.GetArrayItems
- JSON.GetArraySize
- JSON.Release
- MapView.Snapshot
- Text.AddLineNumbers
Example Databases
- Barcode/Barcode Generation JSON
- CURL/Email/IMAP Email List
- CURL/Email/IMAP Email
- Files/Audio File Tags
- JSON/JSON Benchmark
- Mac and iOS/Contacts/Contacts
- Mac and iOS/MapKit/MapKit Snapshots
- Network/Bonjour
Blog Entries
- With JSON in excellent form
- MBS FileMaker Plugin, version 9.4pr1
- Fun with While function in FileMaker
- 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 4.4pr6
FileMaker Magazin
Release notes
- Version 9.4
- Improved pretty formatting for JSON arrays in JSON.Format.
Created 18th October 2014, last changed 10th February 2016
JSON.FindValueInObjectArray - JSON.GetArrayItem
Feedback: Report problem or ask question.
Links
MBS Xojo blog