标签:nbsp sys tom string name seo object parse str
String id = "10010";
String name = "tom";
String age = 50;
String str= "{\"id\":\"" + id + "\"," +
"\"name\": \"" + name + "\"," +
"\"age\": \"" + age + "\"}";
JSONObject object = JSON.parseObject(str);
System.out.println(object.get("name"));
标签:nbsp sys tom string name seo object parse str
原文地址:http://www.cnblogs.com/lovedaodao/p/7911459.html