Menu

#61 JSONToXML: key "content" not correctly converted

Backlog
closed
None
1
2025-10-09
2014-11-11
No

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...

1 Attachments

Discussion

  • Joel Nothman

    Joel Nothman - 2014-11-11

    I repeat with better markdown:

    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 <a>{&quot;b&quot;:&quot;c&quot;}</a> instead of <a><content><b>c</b></content></a>.

     
  • Robert Bala

    Robert Bala - 2025-10-09
    • status: open --> accepted
    • assigned_to: Robert Bala
     
  • Robert Bala

    Robert Bala - 2025-10-09
    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB