* [JSON leaf-list output single element leaf-list does not use array](https://github.com/clicon/clixon/issues/289)
This commit is contained in:
parent
339b744835
commit
f4b35cb270
5 changed files with 30 additions and 30 deletions
|
|
@ -71,7 +71,7 @@ expecteofx "$clixon_util_xml -ovJy $fyang" 0 "$JSON" "$XML"
|
|||
|
||||
# Leaf-lists single
|
||||
XML='<leaf-lists xmlns="urn:example:clixon"><a></a><b></b></leaf-lists>'
|
||||
JSON='{"json:leaf-lists":{"a":[null],"b":""}}'
|
||||
JSON='{"json:leaf-lists":{"a":[[null]],"b":[""]}}'
|
||||
|
||||
new "leaf-list single xml to json"
|
||||
expecteofx "$clixon_util_xml -ovjy $fyang" 0 "$XML" "$JSON"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue