JSON2XMLHelper
Path
com.huawei.livedata.util.JSON2XMLHelper
Description
This class is used to perform conversion between JSON and XML.
Method List
Method Details
- public static String JSON2XML(String json, boolean returnFormat)
Convert from JSON to XML.
Input Parameter
- json indicates a character string in JSON format.
- returnFormat indicates the return format.
Returns
Character string in the XML format.
- public static String XML2JSON(String xml)
Convert from XML to JSON.
Input Parameter
xml indicates a character string in XML format.
Returns
Character string in the XML format.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot