{"id":13367031,"url":"https://github.com/json-iterator/Go","last_synced_at":"2025-03-12T18:31:46.432Z","repository":{"id":37664676,"uuid":"75135036","full_name":"json-iterator/go","owner":"json-iterator","description":"A high-performance 100% compatible drop-in replacement of \"encoding/json\"","archived":false,"fork":false,"pushed_at":"2024-05-27T09:03:49.000Z","size":1256,"stargazers_count":13595,"open_issues_count":264,"forks_count":1041,"subscribers_count":227,"default_branch":"master","last_synced_at":"2025-03-10T04:02:44.417Z","etag":null,"topics":["deserialization","go","golang","json","json-parser","parser","serialization","serializer"],"latest_commit_sha":null,"homepage":"http://jsoniter.com/migrate-from-go-std.html","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/json-iterator.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-30T00:30:24.000Z","updated_at":"2025-03-09T16:31:17.000Z","dependencies_parsed_at":"2023-02-16T10:35:15.331Z","dependency_job_id":"215536a3-fe29-4c32-ad91-0a62bd59b4e6","html_url":"https://github.com/json-iterator/go","commit_stats":{"total_commits":698,"total_committers":56,"mean_commits":"12.464285714285714","dds":0.2693409742120344,"last_synced_commit":"71ac16282d122fdd1e3a6d3e7f79b79b4cc3b50e"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-iterator%2Fgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-iterator%2Fgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-iterator%2Fgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/json-iterator%2Fgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/json-iterator","download_url":"https://codeload.github.com/json-iterator/go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243271373,"owners_count":20264446,"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":["deserialization","go","golang","json","json-parser","parser","serialization","serializer"],"created_at":"2024-07-30T00:01:36.788Z","updated_at":"2025-03-12T18:31:46.085Z","avatar_url":"https://github.com/json-iterator.png","language":"Go","readme":"[![Sourcegraph](https://sourcegraph.com/github.com/json-iterator/go/-/badge.svg)](https://sourcegraph.com/github.com/json-iterator/go?badge)\n[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](https://pkg.go.dev/github.com/json-iterator/go)\n[![Build Status](https://travis-ci.org/json-iterator/go.svg?branch=master)](https://travis-ci.org/json-iterator/go)\n[![codecov](https://codecov.io/gh/json-iterator/go/branch/master/graph/badge.svg)](https://codecov.io/gh/json-iterator/go)\n[![rcard](https://goreportcard.com/badge/github.com/json-iterator/go)](https://goreportcard.com/report/github.com/json-iterator/go)\n[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/json-iterator/go/master/LICENSE)\n[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby)\n\nA high-performance 100% compatible drop-in replacement of \"encoding/json\"\n\n# Benchmark\n\n![benchmark](http://jsoniter.com/benchmarks/go-benchmark.png)\n\nSource code: https://github.com/json-iterator/go-benchmark/blob/master/src/github.com/json-iterator/go-benchmark/benchmark_medium_payload_test.go\n\nRaw Result (easyjson requires static code generation)\n\n|                 | ns/op       | allocation bytes | allocation times |\n| --------------- | ----------- | ---------------- | ---------------- |\n| std decode      | 35510 ns/op | 1960 B/op        | 99 allocs/op     |\n| easyjson decode | 8499 ns/op  | 160 B/op         | 4 allocs/op      |\n| jsoniter decode | 5623 ns/op  | 160 B/op         | 3 allocs/op      |\n| std encode      | 2213 ns/op  | 712 B/op         | 5 allocs/op      |\n| easyjson encode | 883 ns/op   | 576 B/op         | 3 allocs/op      |\n| jsoniter encode | 837 ns/op   | 384 B/op         | 4 allocs/op      |\n\nAlways benchmark with your own workload.\nThe result depends heavily on the data input.\n\n# Usage\n\n100% compatibility with standard lib\n\nReplace\n\n```go\nimport \"encoding/json\"\njson.Marshal(\u0026data)\n```\n\nwith\n\n```go\nimport jsoniter \"github.com/json-iterator/go\"\n\nvar json = jsoniter.ConfigCompatibleWithStandardLibrary\njson.Marshal(\u0026data)\n```\n\nReplace\n\n```go\nimport \"encoding/json\"\njson.Unmarshal(input, \u0026data)\n```\n\nwith\n\n```go\nimport jsoniter \"github.com/json-iterator/go\"\n\nvar json = jsoniter.ConfigCompatibleWithStandardLibrary\njson.Unmarshal(input, \u0026data)\n```\n\n[More documentation](http://jsoniter.com/migrate-from-go-std.html)\n\n# How to get\n\n```\ngo get github.com/json-iterator/go\n```\n\n# Contribution Welcomed !\n\nContributors\n\n- [thockin](https://github.com/thockin)\n- [mattn](https://github.com/mattn)\n- [cch123](https://github.com/cch123)\n- [Oleg Shaldybin](https://github.com/olegshaldybin)\n- [Jason Toffaletti](https://github.com/toffaletti)\n\nReport issue or pull request, or email taowen@gmail.com, or [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby)\n","funding_links":[],"categories":["序列化"],"sub_categories":["高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjson-iterator%2FGo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjson-iterator%2FGo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjson-iterator%2FGo/lists"}