json.equals: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Initial write-up.)
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 7: Line 7:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
json.equal(array1, array2)
json.equals(array1, array2)
</source>
</syntaxhighlight>
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
json.equal(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 23:59, 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.