I have a JSON object which looks like this:
Object {
@ID: "ID",
@Display: "Display",
@Order: "Order",
List: [
{
@ID: "ID",
@Name: "Name"
},
{
@ID: "ID",
@Name: "Name"
}]
}
What I want to achieve is to return the property name if it is of type array. In the code example above, List
should be returned. I have tried using $.isArray(indexOfProperty)
but to no success.
Any help please?