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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  


Checks if two JSON are equal in content.

Component Version macOS Windows Linux Server iOS SDK
JSON 10.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "JSON.EqualContent"; json1; json2 )   More


Parameter Description Example
json1 A JSON text or reference. {"key": "value"}
json2 A JSON text or reference. {"key": "value"}


Returns 1, 0 or error.


Checks if two JSON are equal in content.
We compare recursively all nodes.
If structure and values are the same, we return 1, otherwise 0.
Objects do not need to have same order for entries.

While JSON.Equals checks the type, this function does check the content.


Compare 123 with text to it as number:

MBS( "JSON.EqualContent"; "\"123\""; "123")

Example result: 1

See also

Release notes

Blog Entries

Created 10th January 2020, last changed 10th January 2020

JSON.DeleteItemFromObject - JSON.Equals

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins

Start Chat