import com.alibaba.fastjson.JSON;
String jsonString
jsonString = "
{
"userId":"001",
"userName":"张三"
}
";
User user = JSON.parseObject(jsonString, User.Class);
import com.alibaba.fastjson.JSON;
String jsonString
jsonString = "
{
"userId":"001",
"userName":"张三"
}
";
User user = JSON.parseObject(jsonString, User.Class);