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

Method toJSONObject

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

Convert a well-formed (but not necessarily valid) XML string into a JSONObject using the JsonML transform. Each XML tag is represented as a JSONObject with a "tagName" property. If the tag has attributes, then the attributes will be in the JSONObject as properties. If the tag contains children, the

(XMLTokener x)

Source from the content-addressed store, hash-verified

274 * @throws JSONException
275 */
276 public static JSONObject toJSONObject(XMLTokener x) throws JSONException {
277 return (JSONObject)parse(x, false, null);
278 }
279
280
281 /**

Callers

nothing calls this directly

Calls 1

parseMethod · 0.95

Tested by

no test coverage detected