log in json with rpc method