{"id":17248895,"url":"https://github.com/serras/json-select-transform","last_synced_at":"2025-03-26T06:14:16.163Z","repository":{"id":140294678,"uuid":"343895845","full_name":"serras/json-select-transform","owner":"serras","description":"Library for matching and transformation of JSON documents","archived":false,"fork":false,"pushed_at":"2021-03-04T09:51:50.000Z","size":15,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T07:41:40.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serras.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":"2021-03-02T19:56:50.000Z","updated_at":"2021-03-05T15:52:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6310819-9287-452c-a8ca-e8228d4c0b7f","html_url":"https://github.com/serras/json-select-transform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Fjson-select-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Fjson-select-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Fjson-select-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serras%2Fjson-select-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serras","download_url":"https://codeload.github.com/serras/json-select-transform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598315,"owners_count":20641884,"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":[],"created_at":"2024-10-15T06:42:23.383Z","updated_at":"2025-03-26T06:14:16.157Z","avatar_url":"https://github.com/serras.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `json-select-transform`\n\nA Haskell library for matching/selection and transformation of JSON document.\nInspired by [ST.js](https://selecttransform.github.io/site/).\n\n### `select`\n- template: `{ \"number\" : \"{{x}}\" }`\n- document: `{ \"number\" : 1 }`\n- result: `{ x -\u003e 1 }`\n\n### `transform`\n- template: `{ \"number\" : \"{{x}}\" }`\n- assignment: `{ x -\u003e 1 }`\n- result: `{ \"number\" : 1 }`\n\n### `transform` with interpolation\n- template: `{ \"message\" : \"the result is {{x}}\" }`\n- assignment: `{ x -\u003e 1 }`\n- result: `{ \"message\" : \"the result is 1\" }`\n\n### `transform` with array\n- template: `{ \"{{#each n}}\" : { \"number\" : \"{{n}}\" } }`\n- assignment: `{ n -\u003e [1, 2] }`\n- result: `[ { \"number\" : 1 }, { \"number\" : 2 } ]`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserras%2Fjson-select-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserras%2Fjson-select-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserras%2Fjson-select-transform/lists"}