summaryrefslogtreecommitdiffstats
path: root/src/tools/vppapigen
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/vppapigen')
-rw-r--r--src/tools/vppapigen/JSON.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/vppapigen/JSON.py b/src/tools/vppapigen/JSON.py
index d1f47ebc560..73bff76cbb7 100644
--- a/src/tools/vppapigen/JSON.py
+++ b/src/tools/vppapigen/JSON.py
@@ -15,14 +15,14 @@ def walk_enums(s):
def walk_services(s):
- r = []
+ r = {}
for e in s:
d = {'reply': e.reply}
if e.stream:
d['stream'] = True
if e.events:
d['events'] = e.events
- r.append({e.caller: d})
+ r[e.caller] = d
return r