fix json_array_get throws NPE