ConfD User Community

RPC Callbacks: converting JSON to XML Params

I am using netconf console to execute my rpc’s in confd using callpoints in yang file and writing my action callbacks to hit a rest uri and which gives me response as json. Now I want to convert that json and send it across my rpc so that the data is enclosed in my rpc -reply. Is there a way to do that ??

I guess you can use RESTCONF to get our result in XML (which may need some altering before used in NETCONF). Use medua type application/yang-data+xml, e.g.:

curl -k -u admin:admin -X GET "" -H "accept: application/yang-data+xml"