JSONML

open class JSONML

This provides static methods to convert an XML text into a JSONArray or JSONObject, and to covert a JSONArray or JSONObject into an XML text using the JsonML transform.

Author

JSON.org

Functions

Link copied to clipboard
open fun toJSONArray(string: String): JSONArray
open fun toJSONArray(x: XMLTokener, keepStrings: Boolean): JSONArray
open fun toJSONArray(string: String, keepStrings: Boolean): JSONArray
Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform.
Link copied to clipboard
open fun toJSONObject(string: String): JSONObject
open fun toJSONObject(x: XMLTokener, keepStrings: Boolean): JSONObject
open fun toJSONObject(string: String, keepStrings: Boolean): JSONObject
Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform.