-
Notifications
You must be signed in to change notification settings - Fork 16
/
conf_with_sub.json
32 lines (32 loc) · 1.05 KB
/
conf_with_sub.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"name": "test",
"struct": {
"name": "hello",
"member": [
{ "key": "foo", "type": "int", "req": true, "min": 1, "max": 128, "near": true },
{ "key": "bar", "type": "int", "req": true, "max": 128 },
{ "key": "boo", "type": "bool", "req": false },
{ "key": "str", "type": "char *", "req": true },
{ "key": "arr", "type": "double", "req": true , "array": 4, "mlen": 2, "min": 1 },
{ "key": "han", "type": "float", "req": false },
{ "key": "st1", "type": "struct", "req": true, "name": "struct1" },
{ "key": "st2", "type": "struct", "req": true, "name": "struct2" }
],
"substruct": [
{
"name": "struct1",
"member": [
{ "key": "foo", "type": "int", "req": true, "min": 1, "max": 128, "near": true },
{ "key": "boo", "type": "bool", "req": false },
{ "key": "st2", "type": "struct", "req": true, "name": "struct2" }
]
}, {
"name": "struct2",
"member": [
{ "key": "bar", "type": "int", "req": true, "max": 128 },
{ "key": "str", "type": "char *", "req": true }
]
}
]
}
}