RPC with json

RPC testing done with json
json libraries are added