Fix array to class json.