Fixes for implementation of JsonRpc 

Some fixes for implementation of JsonRpc