# Convert data to JSON
> Supported in: Batch, Faster, Streaming
Transforms input into json string.
**Expression categories:** File, String
## Declared arguments
* **Input:** Input to be transformed.
*Expression\ | Map\ | Struct>*
**Output type:** *String*
## Examples
### Example 1: Base case
**Argument values:**
* **Input:** `array`
| array | **Output** |
| ----- | ----- |
| \[ hello, world ] | \["hello","world"] |
***
### Example 2: Base case
**Argument values:**
* **Input:** `struct`
| struct | **Output** |
| ----- | ----- |
| {
**airline**: {
**id**: NA,
},
} | {"airline":{"id":"NA"}} |
***
### Example 3: Base case
**Argument values:**
* **Input:** `struct`
| struct | **Output** |
| ----- | ----- |
| {
**arr**: \[ {
**bin**: MQ==,
} ],
**inner**: {
**bin**: TG9uZG9u,
},
} | {"inner":{"bin":"TG9uZG9u"},"arr":\[{"bin":"MQ=="}]} |
***
### Example 4: Base case
**Argument values:**
* **Input:** `struct`
| struct | **Output** |
| ----- | ----- |
| {
**bin**: TG9uZG9u,
} | {"bin":"TG9uZG9u"} |
| {
**bin**: MQ==,
} | {"bin":"MQ=="} |
| {
**bin**: MTI=,
} | {"bin":"MTI="} |
***
### Example 5: Base case
**Argument values:**
* **Input:** `struct_0`
| struct\_0 | **Output** |
| ----- | ----- |
| {
**date**: 2021-01-01,
**dec32**: 1.12,
**dec33**: 0.120,
\*\*dec... | {"dec32":1.12,"dec33":0.120,"dec64":10.0000,"timestamp":"2021-01-01T01:01:01.000Z","date":"2021-01-01","struct\_1":{"airline":{"id":"NA"}}} |
***
### Example 6: Base case
**Argument values:**
* **Input:** `array`
| array | **Output** |
| ----- | ----- |
| \[ 1.00, 2.10, 36.00 ] | \[1.00,2.10,36.00] |
***
### Example 7: Base case
**Argument values:**
* **Input:** `map`
| map | **Output** |
| ----- | ----- |
| {
a -> 1,
b -> 2,
} | {"a":"1","b":"2"} |
***
### Example 8: Base case
**Argument values:**
* **Input:** `array`
| array | **Output** |
| ----- | ----- |
| \[ {
**airline**: {
**id**: NA,
},
}, *null* ] | \[{"airline":{"id":"NA"}},null] |
***
### Example 9: Base case
**Argument values:**
* **Input:** `map`
| map | **Output** |
| ----- | ----- |
| {
a -> {
**airline**: {
**id**: NA,
},
},
} | {"a":{"airline":{"id":"NA"}}} |
***
### Example 10: Base case
**Argument values:**
* **Input:** `struct_0`
| struct\_0 | **Output** |
| ----- | ----- |
| {
**array\_1**: \[ *null*, *null*, *null* ],
**struct\_1**: {
**double**: *null*,
**string**: *null*,
},
} | {"struct\_1":{"string":null,"double":null},"array\_1":\[null,null,null]} |
| {
**array\_1**: *null*,
**struct\_1**: *null*,
} | {"struct\_1":null,"array\_1":null} |
***