edit a JSON with specified format.
Here is JPON Demo.
| type name | data type | form |
|---|---|---|
| string | String | input[type=text] |
| string-multi | String | textarea |
| number | int or float | input[type=text] |
| boolean | boolean | input[type=radio] |
| select | String | input[type=radio] |
| select-multi | Array<String> | input[type=checkbox] |
| map | Object | |
| list | Array |
{
filename : "sample.json",
template : {
type:"map",
value:[
{
name:"hello",
type:"map",
value:[
{ name:"foo", type:"string" },
{ name:"bar", type:"string-multi" }
]
}
]
}
}
This template build following JSON.
{
"hello":{
"foo":"***",
"bar":"***"
}
}