public static String parseCSV(String input){
        String[] lines = input.split("\n");
        List<Map<String, String>> list = new ArrayList<Map<String, String>>();
        int size = lines.length;
        for(int i = 0; i < size; i++){
            String[] tokens = lines[i].split("\\|");
            Map<String, String> map = new HashMap<String, String>();
            map.put("name", tokens[0]);
            map.put("address", tokens[1]);
            map.put("phone", tokens[2]);
            map.put("job", tokens[3]);
            list.add(map);
        }

        StringBuilder result = new StringBuilder();
        result.append("{\n");
        Iterator<Map<String, String>> itList = list.iterator();
        while(itList.hasNext()){
            Iterator itMap = itList.next().entrySet().iterator();
            result.append("{");
            while (itMap.hasNext()) {
                Map.Entry entry = (Map.Entry)itMap.next();
                result.append(entry.getKey() + ":" + entry.getValue());

                if(itMap.hasNext()) result.append(",");
            }
            result.append("}");
            if(itList.hasNext()) result.append(",");
            result.append("\n");
        }
        result.append("}\n");
        return result.toString();
    }