Menu

A little bit enhancement of <json-to-...

Peter Ma
2010-12-07
2012-09-04
  • Peter Ma

    Peter Ma - 2010-12-07

    Recently I wrote a script to harvest data from Facebook and Facebook return a
    JSON array.

    I used <json-to-xml> but I got some errors when XPath to extract data from the
    xml data because it is not a well-formed xml.

    In this case, I extend the code of "XmlToJsonPlugin" to use
    XML.toString(Object o, String tagName) to add a root element for xml.

    This is very easy for you guys to add an overwrite method for this purpose
    inthis plugin and adding an attribute named "root-tag-name" or things like
    that.

     
  • Alex Wajda

    Alex Wajda - 2010-12-07

    Great thanks!

    That's definitely must be fixed. I'll look at it!

     
  • Peter Ma

    Peter Ma - 2010-12-08

    Thanks for your work !

     

Log in to post a comment.