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.EqualContent

Checks if two JSON are equal in content.

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

Parameters

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

Result

Returns 1, 0 or error.

Description

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.

Examples

Compare 123 with text to it as number:

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

Example result: 1

See also

Blog Entries

Release notes

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


JSON.DeleteItemFromObject   -   JSON.Equals

Feedback: Report problem or ask question.




Links
MBS FileMaker Plugins