Adding ability to get JSON Type from object key or Array index