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:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Checks if two JSON are equal.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JSON | 9.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
json1 | A JSON text or reference. | {"key": "value"} |
json2 | A JSON text or reference. | {"key": "value"} |
Returns 1, 0 or error.
Compare two numbers:
MBS( "JSON.Equals"; 1; 1 )
Example result: 1
Comparing strings:
MBS( "JSON.Equals"; "\"Hello\""; "\"World\"" ) &
MBS( "JSON.Equals"; "\"Hello\""; "\"Hello\"" )
Example result: 01
Comparing booleans:
MBS( "JSON.Equals"; true; true ) &
MBS( "JSON.Equals"; false; false ) &
MBS( "JSON.Equals"; true; false ) &
MBS( "JSON.Equals"; false; true )
Example result: 1100
Compare objects:
MBS( "JSON.Equals"; "{\"key\": \"value\"}"; "{\"key\": \"value\"}") & MBS( "JSON.Equals"; "{\"key\": \"value\"}"; "{\"key\": \"Value\"}")
Example result: 10
Unicode escapes consider the same as inline characters:
MBS( "JSON.Equals"; "\"\uD83C\uDF4E\""; "\"🍎\"")
Example result: 1
This function checks for a license.
Created 14th December 2018, last changed 31st January 2023