cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2484
Views
0
Helpful
2
Replies

Can NETCONF be parsed by JSON?

louis25448
Level 1
Level 1

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!

2 Replies 2

AJ Cruz
Level 3
Level 3

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.

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.