Changes XML to JSON.