completed json-rpc 2.0 adapter