json: fix object parsing
json: fixes and more tests
http: simplifications and add a setter
rpc: fixes for http service handlers