json.isSubset: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (function name was wrong) |
||
Line 1: | Line 1: | ||
{{stub|Examples of usage.}} | {{stub|Examples of usage.}} | ||
{{MacroFunction | {{MacroFunction | ||
|name=json. | |name=json.isSubset | ||
|version=1.3b53 | |version=1.3b53 | ||
|description= | |description= | ||
Line 8: | Line 8: | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
json. | json.isSubset(firstArray, array, array, ...) | ||
</source> | </source> | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
json. | json.isSubset(firstObject, object, object, ...) | ||
</source> | </source> | ||
'''Parameters''' | '''Parameters''' |
Revision as of 14:17, 19 January 2013
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
This article needs: Examples of usage.
json.isSubset() Function
• Introduced in version 1.3b53
Returns
true
(1
) if all of the JSON Object keys or JSON Array values are contained within the first JSON Object or JSON Array.Usage
json.isSubset(firstArray, array, array, ...)
json.isSubset(firstObject, object, object, ...)
Parameters
firstArray
- The JSON Array that must contain all of the values of the subsequent JSON Arrays for this function to returntrue
(1
).array
- A JSON Array with values that are tested to be within thefirstArray
.firstObject
- The JSON Object that must contain all of the keys of the subsequent JSON Objects for this function to returntrue
(1
).object
- A JSON Object with keys that are tested to be within thefirstObject
.