param jsonout: handle @boolean flag

This got lost when switching from xml to json metadata
This commit is contained in:
Beat Küng
2021-10-07 09:20:50 -04:00
committed by Daniel Agar
parent dc9e072e83
commit 393f59ae71
+5
View File
@@ -93,6 +93,11 @@ class JsonOutput():
code_dict['description']=param.GetEnumValue(item)
codes_list.append(code_dict)
curr_param['values'] = codes_list
elif param.GetBoolean():
curr_param['values'] = [
{ 'value': 0, 'description': 'Disabled' },
{ 'value': 1, 'description': 'Enabled' }
]
if len(param.GetBitmaskList()) > 0: