get JSON arrays to parse properly