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
Returns pretty printed JSON for the given JSON text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JSON | 4.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
json | A JSON text or reference. | "[1,2,3]" |
Returns JSON code.
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)]
Format various JSON entries:
MBS( "JSON.Format";
"{
\"Hello\": \"World\",
\"num\": 123,
\"value\": 123.456,
\"object\": {\"Hello\": \"World\"},
\"empty\": null,
\"array\": [1,2,3]}")
Example result:
{
"Hello": "World",
"num": 123,
"value": 123.456,
"object": {
"Hello": "World"
},
"empty": null,
"array": [1, 2, 3]
}
Created 18th October 2014, last changed 1st March 2021
JSON.FindValueInObjectArray - JSON.GetArrayItem
Feedback: Report problem or ask question.