json.equals: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Json.equals to json.equals: Converting page titles to lowercase)
No edit summary
 
Line 7: Line 7:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
json.equals(array1, array2)
json.equals(array1, array2)
</source>
</syntaxhighlight>
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
json.equals(object1, object2)
json.equals(object1, object2)
</source>
</syntaxhighlight>
'''Parameters'''
'''Parameters'''
* {{code|array1}} & {{code|array2}} - The JSON arrays to compare.
* {{code|array1}} & {{code|array2}} - The JSON arrays to compare.

Latest revision as of 17:48, 15 March 2023

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

json.equals() Function

Introduced in version 1.3b51
Checks if two JSON arrays, or two JSON objects are equal.

Usage

json.equals(array1, array2)
json.equals(object1, object2)

Parameters

  • array1 & array2 - The JSON arrays to compare.
  • object1 & object2 - The JSON objects to compare.