How to deserialize json string into object

后端 未结 4 2129
心在旅途
心在旅途 2021-01-23 06:07
{
   \"LocalLocationId [id=1]\":{
      \"type\":\"folderlocation\",
      \"id\":{
         \"type\":\"locallocationid\",
         \"id\":1
      },
      \"parentId\":         


        
4条回答
  •  情书的邮戳
    2021-01-23 06:44

    You can use Gson ..

    String json = "Your json string "
    Tree treeObj= new Gson().fromJson(json, Tree .class);
    

提交回复
热议问题