{"id":34611427,"url":"https://github.com/velveteer/json-mask","last_synced_at":"2026-05-18T16:40:37.914Z","repository":{"id":228289900,"uuid":"773575606","full_name":"velveteer/json-mask","owner":"velveteer","description":"A Haskell library to filter JSON fields inspired by Google's Partial Response ","archived":false,"fork":false,"pushed_at":"2024-05-22T03:40:06.000Z","size":348,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T02:59:07.525Z","etag":null,"topics":["google","haskell","json","partial-responses"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/velveteer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-03-18T02:05:01.000Z","updated_at":"2025-09-26T14:50:57.000Z","dependencies_parsed_at":"2024-03-18T03:48:47.374Z","dependency_job_id":"3e558a86-0757-4f10-bfc6-e1e1a8cc04cb","html_url":"https://github.com/velveteer/json-mask","commit_stats":null,"previous_names":["velveteer/json-mask"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/velveteer/json-mask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velveteer%2Fjson-mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velveteer%2Fjson-mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velveteer%2Fjson-mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velveteer%2Fjson-mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/velveteer","download_url":"https://codeload.github.com/velveteer/json-mask/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/velveteer%2Fjson-mask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33184768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["google","haskell","json","partial-responses"],"created_at":"2025-12-24T14:15:33.504Z","updated_at":"2026-05-18T16:40:37.905Z","avatar_url":"https://github.com/velveteer.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"left\"\u003e\n\u003cimg src=\"logo.png\" height=25 width=35 /\u003e\njson-mask\n\u003c/h1\u003e\n\nA simple library for filtering JSON using the `fields` syntax inspired by Google's [Partial Response](https://developers.google.com/slides/api/guides/performance#partial). Field masks remove unnecessary values while retaining the structure of the JSON resource.\n\n## Mask Syntax\n\n* `a,b,c` comma-separated list will select multiple fields\n* `a/b/c` path will select a field from its parent\n* `a(b,c)` sub-selection will select many fields from a parent\n* `a/*/c` the star `*` wildcard will select all items in a field\n\nTerminal characters `,*()/` can be escaped using a single backslash `\\`.\n\n## Usage\n\n```haskell\nimport qualified Data.Aeson as Aeson\nimport qualified Data.Aeson.QQ.Simple as Aeson\nimport qualified Data.ByteString.Lazy as BSL\nimport JSONMask (masked)\n\nval :: Aeson.Value\nval = [Aeson.aesonQQ|{\"p\":{\"a\":1,\"b\":2},\"z\":1}|]\n\nmain :: IO ()\nmain = BSL.putStr . Aeson.encode $ masked val \"p/a,z\"\n\n--  {p: {a: 1}, z: 1}\n```\n\nMore examples can be found in the tests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvelveteer%2Fjson-mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvelveteer%2Fjson-mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvelveteer%2Fjson-mask/lists"}