json.isSubset: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) (Initial write-up.) |
mNo edit summary |
||
Line 23: | Line 23: | ||
}} | }} | ||
[[Category:JSON Function]] |
Revision as of 20:57, 20 August 2009
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.subset() 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.subset(firstArray, array, array, ...)
json.subset(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
.