Cheat codes

Java regular use in surveying JSON string to remove the excess. "

1      public  static  void main (String [] args) {
 2          String A = "{\" Color \ ": \" 7.3 \ "binaural soup plate - Green \", \ "warename \" : \ " porcelain Choi Mei (CECEME ) creative personalized ceramic dish soup plate ears household dish deep dish Western dish steak dish salad plate breakfast tray 7.3 \ "binaural soup plate - green plate \"} " ;
 3          JSONObject jsonObject = JSON.parseObject (A);
 4          System .out.println (jsonObject);
 . 5      }

 

Guess you like

Origin www.cnblogs.com/sanmubird/p/11445033.html