{"id":44056662,"url":"https://github.com/ithirzty/quickson","last_synced_at":"2026-02-08T00:36:05.695Z","repository":{"id":56544128,"uuid":"308663287","full_name":"ithirzty/quickson","owner":"ithirzty","description":"A faster json marshaler/unmarshaler library for golang","archived":false,"fork":false,"pushed_at":"2020-11-03T14:26:13.000Z","size":108,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T03:18:17.988Z","etag":null,"topics":["faster","go","golang","json","marshaler","marshalling","parser"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ithirzty.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":"2020-10-30T15:01:31.000Z","updated_at":"2020-11-03T14:26:15.000Z","dependencies_parsed_at":"2022-08-15T20:40:30.051Z","dependency_job_id":null,"html_url":"https://github.com/ithirzty/quickson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ithirzty/quickson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ithirzty%2Fquickson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ithirzty%2Fquickson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ithirzty%2Fquickson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ithirzty%2Fquickson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ithirzty","download_url":"https://codeload.github.com/ithirzty/quickson/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ithirzty%2Fquickson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29214396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T00:10:47.190Z","status":"ssl_error","status_checked_at":"2026-02-08T00:10:43.589Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["faster","go","golang","json","marshaler","marshalling","parser"],"created_at":"2026-02-08T00:36:05.085Z","updated_at":"2026-02-08T00:36:05.684Z","avatar_url":"https://github.com/ithirzty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quickson: Fast JSON Marshaller/Unmarshaller for golang. [![License](https://img.shields.io/badge/License-Apache--2.0-green)](https://github.com/ithirzty/quickson/blob/main/LICENSE)\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/ithirzty/quickson/blob/main/logo.png?raw=true\" /\u003e\n\u003c/p\u003e\n\n##### What is a marshaller? Unmarshaller?\nMarshal signifies stringify. Unmarshal signifies parse.\n\n## Installing\nGo in your project directory, open a terminal and type the following\n```bash\ngo get github.com/ithirzty/quickson\n```\nThen, in your `main.go` import the following\n```golang\nimport(\n\t\"github.com/ithirzty/quickson\"\n)\n```\n### How to update\n```bash\ngo get -u github.com/ithirzty/quickson\n```\n\n## Why?\n* It is up to 3x as fast as the native one (encoding/json), generaly 2x faster.\n* It is really easy to use.\n\n# How to use\n* Converting a struct into JSON:\n```golang\nmyConvertedJson := quickson.Marshal(MyInterface)\n```\n* Parsing JSON into a struct: \n```golang\ndata := myStruct{}\nquickson.Unmarshal(json, \u0026data)\n```\n* Paring JSON into a map/slice/string/bool/int\n```golang\ndata := quickson.Unmarshal(json, false)\n```\n\n## Cons\n* It is best you don't use this tool if you need to marshal complex interfaces, Quickson is not yet capable of converting big interfaces.\n\n## Less performance under load?\nHere is how to use concurrency with quickson:\n```golang\nresult := \"\"\nc := make(chan string)\n\t\t\tgo func() {\n\t\t\t\tc \u003c- quickson.Marshal(MyInterface)\n\t\t\t}()\nresult \u003c- c\n```\n\n\n## How can I test it?\nFollow the installation guide run the following code:\n```golang\npackage main\n\nimport(\n\t\"fmt\"\n\t\"github.com/ithirzty/quickson\"\n)\n\ntype testInterface struct {\n  TestField  string           //\"This is a test.\"\n  TestPassed map[string]bool  //\"My test\": true\n}\n\nfunc main() {\n\ttestVar := testInterface{\"This is a test.\", map[string]bool{\"My test\": true}}\n\tfmt.Printf(\"This is our struct converted in JSON: %v\", quickson.Marshal(testVar))\n\t//should output {\"TestField\":\"This is a test.\",\"TestPassed\":{\"My test\":true}}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fithirzty%2Fquickson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fithirzty%2Fquickson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fithirzty%2Fquickson/lists"}