Updating from XML to JSON