{"id":21476081,"url":"https://github.com/mehditeymorian/json","last_synced_at":"2026-05-16T17:37:52.456Z","repository":{"id":65389504,"uuid":"591297736","full_name":"mehditeymorian/json","owner":"mehditeymorian","description":"standard 'encoding/json' module with ‍‍'in' and 'out' options to have more control over decoding and encoding","archived":false,"fork":false,"pushed_at":"2023-01-20T12:51:56.000Z","size":202,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T16:54:40.647Z","etag":null,"topics":["encoder-decoder","golang","golang-module","json"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mehditeymorian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-01-20T12:16:58.000Z","updated_at":"2023-01-21T03:49:04.000Z","dependencies_parsed_at":"2023-02-12T02:15:41.940Z","dependency_job_id":null,"html_url":"https://github.com/mehditeymorian/json","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mehditeymorian/json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehditeymorian%2Fjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehditeymorian%2Fjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehditeymorian%2Fjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehditeymorian%2Fjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehditeymorian","download_url":"https://codeload.github.com/mehditeymorian/json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehditeymorian%2Fjson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33112189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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":["encoder-decoder","golang","golang-module","json"],"created_at":"2024-11-23T10:47:10.051Z","updated_at":"2026-05-16T17:37:52.440Z","avatar_url":"https://github.com/mehditeymorian.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Encoding Json\nGolang standard `encoding/json` module with more options to have more control over encoding and decoding.\n\n## Options\n- `in`: used to include a field only in decoding\n- `out`: used to include a field only in encoding\n\n## Description\n| example            | description                               |\n|--------------------|-------------------------------------------|\n| json:\"-\"           | field is ignored                          |\n| json:\"name\"        | field is included in `input` and `output` |\n| json:\"name,in\"     | field is only included in `input`         |\n| json:\"name,out\"    | field is only included in `output`        |\n| json:\"name,in,out\" | field is included in `input` and `output` | \n\n\n## Example\nConsidering the following struct as an example:\n- included in decode(unmarshalling):\n  - name\n  - email\n  - password\n- included in encode(marshalling):\n  - name\n  - email\n  - balance\n\n```go\npackage main\n\ntype User struct {\n\tName     string `json:\"name\"`\n\tEmail    string `json:\"email\"`\n\tPassword string `json:\"password,in\"`\n\tBalance  uint   `json:\"balance,out\"`\n}\n```\n\n# Acknowledgment\nThis module is a copy of `encoding/json` module from Go version `1.19`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehditeymorian%2Fjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehditeymorian%2Fjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehditeymorian%2Fjson/lists"}