Modified getArray() to return the JSONKeyValue_t for the array and behave more like the other getXXX functions.