Fix xml to json converter
[anna.git] / example / diameter / launcher / resources / rest_api / helpers / diameterJsonHelper / xml2json.py
index 707053d..bb25d8e 100755 (executable)
@@ -46,7 +46,7 @@ except:
 # force the value just in case xmltodict implementation
 # changes. The anna::core::functions::json2xml helper,
 # assumes this prefix in order to work properly.
-result=xmltodict.parse(xml, attr_prefix='@')
+result=xmltodict.parse(xml, force_list={'avp'}, attr_prefix='@')
 
 if parent:
   result = { parent: result }