public class JSONML
extends java.lang.Object
| Constructor and Description |
|---|
JSONML() |
| Modifier and Type | Method and Description |
|---|---|
static JSONArray |
toJSONArray(java.lang.String string)
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
|
static JSONArray |
toJSONArray(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a
JSONArray using the JsonML transform.
|
static JSONObject |
toJSONObject(java.lang.String string)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
|
static JSONObject |
toJSONObject(XMLTokener x)
Convert a well-formed (but not necessarily valid) XML string into a
JSONObject using the JsonML transform.
|
static java.lang.String |
toString(JSONArray ja)
Reverse the JSONML transformation, making an XML text from a JSONArray.
|
static java.lang.String |
toString(JSONObject jo)
Reverse the JSONML transformation, making an XML text from a JSONObject.
|
public static JSONArray toJSONArray(java.lang.String string) throws JSONException
<[ [ ]]> are ignored.string - The source string.JSONExceptionpublic static JSONArray toJSONArray(XMLTokener x) throws JSONException
<[ [ ]]> are ignored.x - An XMLTokener.JSONExceptionpublic static JSONObject toJSONObject(XMLTokener x) throws JSONException
<[ [ ]]> are ignored.x - An XMLTokener of the XML source text.JSONExceptionpublic static JSONObject toJSONObject(java.lang.String string) throws JSONException
<[ [ ]]> are ignored.string - The XML source text.JSONExceptionpublic static java.lang.String toString(JSONArray ja) throws JSONException
ja - A JSONArray.JSONExceptionpublic static java.lang.String toString(JSONObject jo) throws JSONException
jo - A JSONObject.JSONException