Tuesday, February 22, 2011

Online XML to JSON Converter using Badgerfish Notation

I have hosted an online XML to JSON converter at http://gogooog.com. It has been implemented purely with Javascript. You can read about the xml to badgerfish conversion at http://ruchirawageesha.blogspot.com/2011/01/xml-to-badgerfish-converter-in.html.

8 comments:

  1. check this one http://json.online-toolz.com/tools/xml-json-convertor.php

    ReplyDelete
  2. @TinyStack,

    Thanks for pointing that out. But I am not sure what is the convention that it uses. Further, it removes details of the XML such as namespaces which is one of the greatest feature of XML. When we remove this kind of details from the XML, then we will get a completely different XML when we convert the JSON back to XML. E.g.

    <json>
    <hello xmlns="foo" xmlns:n="bar">
    <n:name>world</n:name>
    </hello>
    </json>

    gives me

    {"json":{"hello":""}}

    ReplyDelete
  3. hadargitti sulemagane....

    ReplyDelete
  4. try this one : "textAtextB = textC"


    it doesn't do compatible backward conversion

    ReplyDelete
  5. @alexander

    What did you mean by this?

    "textAtextB = textC"

    ReplyDelete
  6. check this for easy to understand and good viewer
    http://codebeautify.org/view/xml2json

    ReplyDelete
  7. Love JSON tool and want to share http://jsonformatter.org which does JSON to XML

    ReplyDelete