Java tutorial
//package com.java2s; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> parserAliResult(String result) { String[] array = result.split(";"); Map<String, String> map = new HashMap<String, String>(); for (String s : array) { int index = s.indexOf("="); String key = s.substring(0, index); String value = ""; if (!s.substring(index + 1).equals("{}")) { value = s.substring(index + 2, s.length() - 1); } map.put(key, value); } return map; } }