MCPcopy Create free account
hub / github.com/MCBans/MCBans / toJSONArray

Method toJSONArray

src/main/java/com/mcbans/plugin/org/json/JSONML.java:241–243  ·  view source on GitHub ↗

Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform. Each XML tag is represented as a JSONArray in which the first element is the tag name. If the tag has attributes, then the second element will be JSONObject containing the name/value pairs. If t

(String string)

Source from the content-addressed store, hash-verified

239 * @throws JSONException
240 */
241 public static JSONArray toJSONArray(String string) throws JSONException {
242 return toJSONArray(new XMLTokener(string));
243 }
244
245
246 /**

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected