目录
1. Json字符串转JsonObject
使用到的方法1:
static JSONObject parseObject(String text)
使用到的方法2:
public String getString(String key)
/**
* 将Json字符串转为JsonObject对象
* 取值不存在时,返回null,使用Gson会抛异常
*/
@Test
public void test2() {
目录
使用到的方法1:
static JSONObject parseObject(String text)
使用到的方法2:
public String getString(String key)
/**
* 将Json字符串转为JsonObject对象
* 取值不存在时,返回null,使用Gson会抛异常
*/
@Test
public void test2() {