{"id":37130816,"url":"https://github.com/nlowe/autojson","last_synced_at":"2026-01-14T15:02:16.837Z","repository":{"id":57608460,"uuid":"199075055","full_name":"nlowe/autojson","owner":"nlowe","description":"http.HandlerFunc wrapper for json-based API's","archived":false,"fork":false,"pushed_at":"2019-09-01T20:46:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T15:44:58.137Z","etag":null,"topics":["api","go","golang","json"],"latest_commit_sha":null,"homepage":null,"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/nlowe.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":"2019-07-26T20:17:14.000Z","updated_at":"2019-07-26T20:33:19.000Z","dependencies_parsed_at":"2022-09-03T08:43:58.924Z","dependency_job_id":null,"html_url":"https://github.com/nlowe/autojson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nlowe/autojson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlowe%2Fautojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlowe%2Fautojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlowe%2Fautojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlowe%2Fautojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nlowe","download_url":"https://codeload.github.com/nlowe/autojson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nlowe%2Fautojson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"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":["api","go","golang","json"],"created_at":"2026-01-14T15:02:16.049Z","updated_at":"2026-01-14T15:02:16.770Z","avatar_url":"https://github.com/nlowe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# autojson\r\n\r\n[![Build Status](https://travis-ci.org/nlowe/autojson.svg?branch=master)](https://travis-ci.org/nlowe/autojson) [![Coverage Status](https://coveralls.io/repos/github/nlowe/autojson/badge.svg?branch=master)](https://coveralls.io/github/nlowe/autojson?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/nlowe/autojson)](https://goreportcard.com/report/github.com/nlowe/autojson) [![Documentation](https://godoc.org/github.com/nlowe/autojson?status.svg)](https://godoc.org/github.com/nlowe/autojson)\r\n\r\n`autojson` makes it easier to return JSON responses and errors for APIs.\r\n\r\n## Usage\r\n\r\nTo add `autojson` to your project, simply `go get` it:\r\n\r\n```bash\r\ngo get -u github.com/nlowe/autojson\r\n```\r\n\r\n`autojson` accepts a wide variety of handler functions. See the [godoc](https://godoc.org/github.com/nlowe/autojson#HandlerFunc)\r\nfor details. In general, your handlers now return concrete types and an optional HTTP Status Code and/or error,\r\n`autojson` takes care of the serialization. See the [example](./sample/main.go) for more details.\r\n\r\n## Building\r\n\r\nThis project makes use of Go Modules. You need Go 1.12+ to fully utilize it.\r\n\r\n## License\r\n\r\n`autojson` is licensed under the MIT License. It is inspired by the AWS Lambda Go SDK, which is licensed under the\r\nApache 2 License and can be found at https://github.com/aws/aws-lambda-go.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlowe%2Fautojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlowe%2Fautojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlowe%2Fautojson/lists"}