cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

206
Views
0
Helpful
1
Replies
louis25448
Beginner

Can NETCONF be parsed by JSON?

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!

1 REPLY 1
AJ Cruz
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.