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

Can NETCONF be parsed by JSON?

louis25448
Beginner
Beginner

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
Participant
Participant

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.