07-30-2021 06:21 AM
Can NETCONF data be parsed by JSON? I've heard RESTCONF can be parsed by JSON or XML, however NETCONF can only be parsed by XML.
Is this true?
Thanks!
09-24-2021 10:57 AM
NETCONF uses XML for encoding.
I'm not aware of an option on cisco platforms to tell NETCONF to accept or produce JSON-encoded payloads.
That being said you can easily convert XML to JSON. If you're using Python the json & xmltodict libraries will help you.
12-30-2021 03:54 PM
Netconf uses only XML encoding. But if you need to manipulate the XML payload in JSON you can do it over a python script if you went.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide