未验证 提交 5f274713 编写于 作者: A Avi Aryan

add json adaptor docs

上级 b9f999b1
# JSON adaptor
The json adaptor reads data from a json file.
Here is how a configuration file looks like-
```ini
src.type=json
src.uri=/full/path/to/file.json
dest.type=elasticsearch
dest.uri=appname
```
The `file.json` should contain a json object with table namespaces as its keys.
The keys in return should contain an array containing the data that belongs to that namespace.
Example -
```js
{
"pokemons": [
{
"_id": 1,
"name": "Raichu"
},
{
"_id": 1,
"name": "Bulbasaur"
}
],
"bitbeasts": [
{
"_id": 1,
"name": "Dragoon",
"owner": "Tyson"
},
{
"_id": 2,
"name": "Dranzer",
"owner": "Kai"
}
]
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册