Expand description
Read and Write in JSON format.
Configuration
key | alias | Description | Default Value | Possible Values |
---|---|---|---|---|
type | - | Required in order to use this document. | json | json |
metadata | meta | Metadata describe the resource. | null | crate::Metadata |
is_pretty | - | Display json data readable for human. | false | false / true |
entry_path | - | Use this field if you want target a specific field in the json object. | null | String in json pointer format |
Examples:
[
{
"type": "read",
"document": {
"type": "json",
"entry_path": "/0"
}
},
{
"type": "write",
"document": {
"type": "json",
"is_pretty": true
}
}
]
input:
[
{"field1":"value1"},
{"field1":"value2"},
...
]
output:
[
{
"field1":"value1"
}
]