Added XML to JSON support