{"id":41648848,"url":"https://github.com/mushroomsir/jsonrpc","last_synced_at":"2026-01-24T15:41:03.288Z","repository":{"id":57607534,"uuid":"82792088","full_name":"mushroomsir/jsonrpc","owner":"mushroomsir","description":"Move to https://github.com/teambition/jsonrpc-go","archived":false,"fork":false,"pushed_at":"2017-02-28T03:22:25.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T13:30:52.011Z","etag":null,"topics":["simple-api"],"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/mushroomsir.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":"2017-02-22T10:31:23.000Z","updated_at":"2024-06-20T13:30:52.012Z","dependencies_parsed_at":"2022-08-30T04:41:39.191Z","dependency_job_id":null,"html_url":"https://github.com/mushroomsir/jsonrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mushroomsir/jsonrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushroomsir%2Fjsonrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushroomsir%2Fjsonrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushroomsir%2Fjsonrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushroomsir%2Fjsonrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mushroomsir","download_url":"https://codeload.github.com/mushroomsir/jsonrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mushroomsir%2Fjsonrpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28730328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T10:24:43.181Z","status":"ssl_error","status_checked_at":"2026-01-24T10:24:36.112Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["simple-api"],"created_at":"2026-01-24T15:41:02.620Z","updated_at":"2026-01-24T15:41:03.282Z","avatar_url":"https://github.com/mushroomsir.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsonrpc\n\n[![Build Status](https://travis-ci.org/mushroomsir/jsonrpc.svg?branch=master)](https://travis-ci.org/mushroomsir/jsonrpc)\n[![Coverage Status](http://img.shields.io/coveralls/mushroomsir/jsonrpc.svg?style=flat-square)](https://coveralls.io/r/mushroomsir/jsonrpc)\n[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/mushroomsir/jsonrpc/master/LICENSE)\n[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/mushroomsir/jsonrpc)\n\njsonrpc is an golang implementation just for parse and serialize JSON-RPC2 messages, it's easy to integration with your any application.\n\nInspired by [https://github.com/teambition/jsonrpc-lite](https://github.com/teambition/jsonrpc-lite) and [JSON-RPC 2.0 specifications](http://jsonrpc.org/specification)\n## Installation\n```go\ngo get github.com/mushroomsir/jsonrpc\n```\n\n## API\n####  jsonrpc.Request(id, method[, params])\nCreates a JSON-RPC 2.0 message structures \n- `id`: {String|Int|nil}\n- `method`: {String}\n- `params`:  {interface{}}, optional\n```go\n\tval, err := jsonrpc.Request(123, \"update\")\n\t{\n    \"jsonrpc\": \"2.0\",\n    \"method\": \"update\",\n    \"id\": 123\n    }\n```\n####  jsonrpc.Request2(method[, params])\nCreates a JSON-RPC 2.0 message structures, the id is automatic generation by strconv.FormatInt(rand.Int63(), 10)\n- `method`: {String}\n- `params`:  {interface{}}, optional\n```go\n\tval, err := jsonrpc.Request(\"update\")\n\t{\n    \"jsonrpc\": \"2.0\",\n    \"method\": \"update\",\n    \"id\": randnum\n    }\n```\n####  jsonrpc.Notification(method[, params])\nCreates a JSON-RPC 2.0 notification message structures\n- `method`: {String}\n- `params`:  {interface{}}, optional\n```go\n    val, err = jsonrpc.Notification(\"update\")\n    {\n    \"jsonrpc\": \"2.0\",\n    \"method\": \"update\"\n    }\n```   ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmushroomsir%2Fjsonrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmushroomsir%2Fjsonrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmushroomsir%2Fjsonrpc/lists"}