change json object type to array type