# XML to JSON

The XML to JSON Data Operation converts a Text value containing XML to JSON. It is commonly used if an API returns XML, because most operations in Airkit (such as [AirData](../../working-with-data/working-with-data-overview/airdata)) use JSON.

![organizing info](https://2599974655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRF6etABDVMr59RdpyGw%2Fuploads%2Fgit-blob-e879c5fe5f3e03ac19666eebc9a04507ae1c64d3%2Fthe-xml-to-json-data-operation-v184-0.gif?alt=media)

\#Use Cases

* Take an XML response from a SOAP API and convert it to JSON
* Take HTML input and convert it to JSON to easily log or manipulate it

## Data Operation Properties

### Input Value

A Variable in the current Data Flow. This Variable must be of [Text](../../variable-data-types/the-text-variable-data-type) type. The input must be well-formed XML. See Mozilla's [XML Introduction](https://developer.mozilla.org/en-US/docs/Web/XML/XML_introduction).

## Run Results

An automatically created Variable to hold the result of this Operation.
