added convenience methods to json.tcl and runs jsonrpc handlers