Home | History | Annotate | Download | only in json

Lines Matching full:jsonarray

31  * This provides static methods to convert an XML text into a JSONArray or 
32 * JSONObject, and to covert a JSONArray or JSONObject into an XML text using
40 * Parse XML values and store them in a JSONArray.
43 * @param ja The JSONArray that is containing the current tag or null
45 * @return A JSONArray if the value is the outermost tag, otherwise null.
49 JSONArray ja) throws JSONException {
54 JSONArray newja = null;
132 newja = new JSONArray();
231 * JSONArray using the JsonML transform. Each XML tag is represented as
232 * a JSONArray in which the first element is the tag name. If the tag has
238 * @return A JSONArray containing the structured data from the XML string.
241 public static JSONArray toJSONArray(String string) throws JSONException {
248 * JSONArray using the JsonML transform. Each XML tag is represented as
249 * a JSONArray in which the first element is the tag name. If the tag has
255 * @return A JSONArray containing the structured data from the XML string.
258 public static JSONArray toJSONArray(XMLTokener x) throws JSONException {
259 return (JSONArray)parse(x, true, null);
299 * Reverse the JSONML transformation, making an XML text from a JSONArray.
300 * @param ja A JSONArray.
304 public static String toString(JSONArray ja) throws JSONException {
364 } else if (e instanceof JSONArray) {
365 sb.append(toString((JSONArray)e));
390 JSONArray ja;
443 } else if (e instanceof JSONArray) {
444 sb.append(toString((JSONArray)e));