public class JSONML extends Object
| Constructor and Description |
|---|
JSONML() |
| Modifier and Type | Method and Description |
|---|---|
static JSONArray |
toJSONArray(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 String |
toString(JSONArray ja)
Reverse the JSONML transformation, making an XML text from a JSONArray.
|
public static JSONArray toJSONArray(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 String toString(JSONArray ja) throws JSONException
ja - A JSONArray.JSONExceptionCopyright © 2013. All Rights Reserved.