Fix keypath regression

Accept NSArray as a valid JSON Object to fix the regression