json.equals: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Initial write-up.)
 
No edit summary
Line 8: Line 8:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
json.equal(array1, array2)
json.equals(array1, array2)
</source>
</source>
<source lang="mtmacro" line>
<source lang="mtmacro" line>
json.equal(object1, object2)
json.equals(object1, object2)
</source>
</source>
'''Parameters'''
'''Parameters'''

Revision as of 12:37, 3 January 2012

 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.