I'm trying to check if a node exists in an array but can't seem to get my if statement correct.
I've currently got :
if (obj2["spec"]["3"]["spec2"]["14"] != null) { do stuff }
In some cases [14] wont exist as the array length is only 5 or 6, so want to make sure it doesn't try to do anything if [14] doesn't have any items in it.