Subscribing to a notification event stream using JSON-RPC

How to I subscribe to a notification event stream using JSON RPC. Is there any any example to show this. I am not able to see any JSON-RPC call which takes the stream name as a parameter… Please help

Notifications are a feature of the NETCONF server and not the Web server so you won’t be able to get notifications through JSON or CLI or any other NB interface for NETCONF notifications (Chapter 15.7).

What you can do through all NB interfaces is to interact with the database.

For example you can read whatever you store in CDB. You can decide to store the notification information programmatically in CDB if you want to and then pull that data via a JSONRPC get call. Or you can subscribe for data change instead if it serves the purpose you had with notification streams (Section 19.3: subscribe_changes).