JsonFind(json, json, int, int)
From NWN Lexicon
Jump to navigationJump to searchFinds a json needle in a json haystack.
Parameters
- jHaystack
- The json to search
- jNeedle
- The json to find
- nNth
- 0-indexed item to find (Default: 0)
- nConditional
- Type of find to do, JSON_FIND_* constant (Default: JSON_FIND_EQUAL)
Description
Returns the nth-matching index or key of jNeedle in jHaystack.
Supported haystacks: object, array
Ordering behaviour for objects is unspecified.
Return null when not found or on any error.
Version
This function was added in 1.86.8193.34 of NWN:EE.
Example
See Also
functions: |