Skip to content

Commit 7ce75f7

Browse files
rbxktf
authored andcommitted
fix invalid json files (duplicate keys)
1 parent 1e5e77a commit 7ce75f7

3 files changed

Lines changed: 40 additions & 48 deletions

File tree

CCDB/config/conditions-client.json

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
{
22
"fairMQOptions":
33
{
4-
"device":
5-
{
4+
"devices":
5+
[{
66
"id": "parmq-client",
7-
"channel":
8-
{
7+
"channels":
8+
[{
99
"name": "data-put",
10-
"socket":
11-
{
10+
"sockets":
11+
[{
1212
"type": "push",
1313
"method": "connect",
1414
"address": "tcp://localhost:25005",
1515
"sndBufSize": "200",
1616
"rcvBufSize": "1000",
1717
"rateLogging": "0"
18-
}
19-
},
20-
"channel":
21-
{
18+
}]
19+
},{
2220
"name": "data-get",
23-
"socket":
24-
{
21+
"sockets":
22+
[{
2523
"type": "req",
2624
"method": "connect",
2725
"address": "tcp://localhost:25006",
2826
"sndBufSize": "1000",
2927
"rcvBufSize": "1000",
3028
"rateLogging": "0"
31-
}
32-
}
33-
}
29+
}]
30+
}]
31+
}]
3432
}
3533
}
3634

CCDB/config/conditions-server.json

Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,55 @@
11
{
22
"fairMQOptions":
33
{
4-
"device":
5-
{
4+
"devices":
5+
[{
66
"id": "parmq-server",
7-
"channel":
8-
{
7+
"channels":
8+
[{
99
"name": "data-put",
10-
"socket":
11-
{
10+
"sockets":
11+
[{
1212
"type": "pull",
1313
"method": "bind",
1414
"address": "tcp://*:25005",
1515
"sndBufSize": "1000",
1616
"rcvBufSize": "1000",
1717
"rateLogging": "0"
18-
}
19-
},
20-
"channel":
21-
{
18+
}]
19+
},{
2220
"name": "data-get",
23-
"socket":
24-
{
21+
"sockets":
22+
[{
2523
"type": "rep",
2624
"method": "bind",
2725
"address": "tcp://*:25006",
2826
"sndBufSize": "1000",
2927
"rcvBufSize": "1000",
3028
"rateLogging": "0"
31-
}
32-
},
33-
"channel":
34-
{
29+
}]
30+
},{
3531
"name": "broker-put",
36-
"socket":
37-
{
32+
"sockets":
33+
[{
3834
"type": "push",
3935
"method": "connect",
4036
"address": "tcp://127.0.0.1:5558",
4137
"sndBufSize": "1000",
4238
"rcvBufSize": "1000",
4339
"rateLogging": "0"
44-
}
45-
},
46-
"channel":
47-
{
40+
}]
41+
},{
4842
"name": "broker-get",
49-
"socket":
50-
{
43+
"sockets":
44+
[{
5145
"type": "req",
5246
"method": "connect",
5347
"address": "tcp://127.0.0.1:5559",
5448
"sndBufSize": "1000",
5549
"rcvBufSize": "1000",
5650
"rateLogging": "0"
57-
}
58-
}
59-
}
51+
}]
52+
}]
53+
}]
6054
}
6155
}

Examples/flp2epn/src/flp2epn.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"devices":
55
[{
66
"id": "flpEx",
7-
"channel":
8-
{
7+
"channels":
8+
[{
99
"name": "data",
1010
"socket":
1111
{
@@ -16,7 +16,7 @@
1616
"rcvBufSize": "1000",
1717
"rateLogging": "1"
1818
}
19-
}
19+
}]
2020
},
2121
{
2222
"id": "proxy",
@@ -47,8 +47,8 @@
4747
},
4848
{
4949
"id": "epnEx",
50-
"channel":
51-
{
50+
"channels":
51+
[{
5252
"name": "data",
5353
"socket":
5454
{
@@ -59,7 +59,7 @@
5959
"rcvBufSize": "1000",
6060
"rateLogging": "1"
6161
}
62-
}
62+
}]
6363
}]
6464
}
6565
}

0 commit comments

Comments
 (0)