Home > Back-end >  XSD file how to json format
XSD file how to json format

Time:05-09

XSD file how to json format

CodePudding user response:

Org. Json this library can realize conversion, maven depends on the following:


Org. Json
Json
20201115 & lt;/version>


Use:
/* *
* the XML to json string
* @ param XML
* @ return
*/
Public String xmlToJson XML (String) {
String ret=null;
JSONObject obj=XML. ToJSONObject (XML);
If (obj! Ret==null) obj. ToString ();
return ret;
}
  • Related