Vs use directly converted into the format json entity class Model

E.g. JSON format as follows:

{
   " ResultCode " : " 200 " ,
   " reason " : " Query successful " ,
   " the Result " : {
     " Area " : " Zhengzhou, Henan " ,
     " LOCATION " : " Telecommunications " 
  }, 
  " ERROR_CODE " : 0 
}

The first step: Copy the contents of the above json

Part II: Figure!

Direct will be in your class file, the emergence of a new Model

is not particularly convenient

 

Guess you like

Origin www.cnblogs.com/romanticcrystal/p/12586490.html