{"id":19167081,"url":"https://github.com/powerman/rpc-codec","last_synced_at":"2025-10-11T20:51:04.995Z","repository":{"id":36883123,"uuid":"41190111","full_name":"powerman/rpc-codec","owner":"powerman","description":"JSON-RPC 2.0 codec for Go net/rpc standard library","archived":false,"fork":false,"pushed_at":"2021-06-27T19:41:22.000Z","size":110,"stargazers_count":95,"open_issues_count":7,"forks_count":36,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-16T15:09:43.276Z","etag":null,"topics":["go","golang","golang-library","json-rpc","json-rpc2","rpc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/powerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-22T04:17:19.000Z","updated_at":"2024-10-25T15:48:40.000Z","dependencies_parsed_at":"2022-08-08T18:01:56.277Z","dependency_job_id":null,"html_url":"https://github.com/powerman/rpc-codec","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Frpc-codec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Frpc-codec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Frpc-codec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Frpc-codec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powerman","download_url":"https://codeload.github.com/powerman/rpc-codec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230400606,"owners_count":18219830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","json-rpc","json-rpc2","rpc"],"created_at":"2024-11-09T09:35:45.140Z","updated_at":"2025-10-11T20:50:59.961Z","avatar_url":"https://github.com/powerman.png","language":"Go","readme":"# JSON-RPC 2.0 [![GoDoc](https://godoc.org/github.com/powerman/rpc-codec/jsonrpc2?status.svg)](http://godoc.org/github.com/powerman/rpc-codec/jsonrpc2) [![CircleCI](https://circleci.com/gh/powerman/rpc-codec.svg?style=svg)](https://circleci.com/gh/powerman/rpc-codec) [![Coverage Status](https://coveralls.io/repos/powerman/rpc-codec/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/powerman/rpc-codec?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/powerman/rpc-codec)](https://goreportcard.com/report/github.com/powerman/rpc-codec)\n\njsonrpc2 is a codec for net/rpc.\n\nImplements [JSON-RPC 2.0](http://www.jsonrpc.org/specification) and\n[JSON-RPC 2.0 Transport: HTTP](http://www.simple-is-better.org/json-rpc/transport_http.html)\nspecifications with following limitations:\n\n- Client: Batch Request not supported.\n- HTTP Client\u0026Server: Pipelined Requests/Responses not supported.\n- HTTP Client\u0026Server: GET Request not supported.\n\nAlso provides command-line tool `jsonrpc2client`.\n\n\n## Installation\n\n```sh\ngo get github.com/powerman/rpc-codec/...\n```\n\nOr, if you need only `jsonrpc2client` tool, then download binary for your\nOS manually from\n[releases](https://github.com/powerman/rpc-codec/releases) or run this to\ninstall the latest version:\n\n```sh\ncurl -sfL $(curl -s https://api.github.com/repos/powerman/rpc-codec/releases/latest | grep -i /jsonrpc2client-$(uname -s)-$(uname -m)\\\" | cut -d\\\" -f4) | sudo install /dev/stdin /usr/local/bin/jsonrpc2client\n```\n\n## Usage\n\n### jsonrpc2client\n\n```\n$ jsonrpc2client -h\nUsage: jsonrpc2client [flags] method params-as-json\n  -http.endpoint string\n        service endpoint as url\n  -notification\n        send notification request\n  -tcp.addr string\n        service endpoint as host:port\n  -transport string\n        transport (stdin|tcp|http) (default \"http\")\n  -version\n        print version\n$ jsonrpc2client -http.endpoint https://example.com/rpc method.name '{\"namedArg1\":\"value\"}'\n$ jsonrpc2client -http.endpoint https://example.com/rpc method.name '[\"positionalArg1\"]'\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerman%2Frpc-codec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerman%2Frpc-codec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerman%2Frpc-codec/lists"}