Translate any XML document to corresponding JSON or vice versa