StructFindKey
Method Signature
StructFindKey(struct=[structloose], key=[any], scope=[string])Arguments
Argument
Type
Required
Description
Default
Examples
Find first match for a nested struct key
Beatles = {
PERSON1 : {
ID : 1,
FIRSTNAME : "John",
LASTNAME : "Lennon"
},
PERSON2 : {
ID : 2,
FIRSTNAME : "Paul",
LASTNAME : "McCartney"
},
PERSON3 : {
ID : 3,
FIRSTNAME : "George",
LASTNAME : "Harrison"
},
PERSON5 : {
ID : 5,
FIRSTNAME : "Abbey",
LASTNAME : "Road"
},
PERSON4 : {
ID : 4,
FIRSTNAME : "Ringo",
LASTNAME : "Starr"
}
};
myKey = structFindKey( Beatles, "lastName", "one" );
writeOutput( JSONSerialize( myKey ) );
Find all matches of a nested struct key
Find first match for a nested struct key using member function
Additional Examples
Related
Last updated
Was this helpful?
