Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Generated by JSON2Apex http://json2apex.herokuapp.com/
- //
- public class JSON2Apex {
- public String title;
- public List<String> fields;
- public List<Integer> types;
- public List<String> type_names;
- public List<List<String>> values;
- public static JSON2Apex parse(String json) {
- return (JSON2Apex) System.JSON.deserialize(json, JSON2Apex.class);
- }
- }
- List<Map<String, Object>> parsedObjects = new List<Map<String, Object>>();
- for(String[] item: result.values) {
- Map<String, Object> itemData = new Map<String, Object>();
- for(Integer index = 0, size = result.fields.size(), index < size; index++) {
- itemData.put(result.fields[index], item[index]);
- }
- parsedObjects.add(itemData);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement