JSONToXML: key "content" not correctly converted
Status: Beta
Brought to you by:
rbala
org.json.XML.toString has a special case for the key "content" found in JSON files. json-to-xml renders {"a": {"content": {"b": "c"}}} as {"b":"c"} instead of <content>c</content>.
Attached is a patch which alters org.json.XML.toString to make this magic key configurable; JSONToXMLPlugin now uses a null key 'cause we never want this to happen...
Anonymous
I repeat with better markdown:
org.json.XML.toStringhas a special case for the key"content"found in JSON files. json-to-xml renders{"a": {"content": {"b": "c"}}}as<a>{"b":"c"}</a>instead of<a><content><b>c</b></content></a>.