Description
When running the following to query an xpath that doesn't exist the result isn't json but the string "(null)". I would expect the output returned would be valid json.
show mgmt datastore-contents running xpath json
Version
How to reproduce
From vtysh run the following with an xpath that doesn't exist.
show mgmt datastore-contents running xpath json
Expected behavior
The value returned is a string
(null)
I'd expect valid json, maybe {}
Actual behavior
The output is not valid json
(null)
Additional context
No response
Checklist
Description
When running the following to query an xpath that doesn't exist the result isn't json but the string "(null)". I would expect the output returned would be valid json.
show mgmt datastore-contents running xpath json
Version
How to reproduce
From vtysh run the following with an xpath that doesn't exist.
show mgmt datastore-contents running xpath json
Expected behavior
The value returned is a string
(null)
I'd expect valid json, maybe {}
Actual behavior
The output is not valid json
(null)
Additional context
No response
Checklist