81,092
社区成员
发帖
与我相关
我的任务
分享
import java.math.BigDecimal;
import java.util.*;
import net.sf.json.JSONObject;
public class Test {
public static void main(String[] args) {
String str = "{alertType=4, circle=null, identifer=030110201910121040251776, limit=, memGroup=, memType=MJryiu, mobile=, poiType=aa, polygon=, senderCode=440600000000000, senderExtension=, skip=, unitCode=41644060000000000, unitMerge=, warnId=27675, warningType=11B00_3}";
JSONObject paramMap = JSONObject.fromObject(str);
String identifer = (String) paramMap.get("identifer");
String memType = (String) paramMap.get("memType");
System.out.println("--------"+identifer +","+memType );
}
}