{"id":21317225,"url":"https://github.com/oldrev/jasper","last_synced_at":"2025-03-15T21:43:57.869Z","repository":{"id":141075712,"uuid":"495015104","full_name":"oldrev/jasper","owner":"oldrev","description":"A Lisp S-Expression style JSON predicate parser for Linq.","archived":false,"fork":false,"pushed_at":"2023-03-29T04:02:18.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T10:47:22.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/oldrev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-22T09:32:45.000Z","updated_at":"2022-05-22T09:36:29.000Z","dependencies_parsed_at":"2023-07-05T14:30:36.030Z","dependency_job_id":null,"html_url":"https://github.com/oldrev/jasper","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/oldrev%2Fjasper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fjasper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fjasper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldrev%2Fjasper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oldrev","download_url":"https://codeload.github.com/oldrev/jasper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243796647,"owners_count":20349252,"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-11-21T18:42:31.296Z","updated_at":"2025-03-15T21:43:57.846Z","avatar_url":"https://github.com/oldrev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sandwych.Jasper\n\nA Lisp S-Expression style JSON predicate parser for LINQ.\n\nIt works on all LINQ implementation, including: \n\n* LINQ to Objects\n* LINQ to XML\n* LINQ to DB\n* NHibernate\n* EntityFramework Core\n* etc...\n\n# Usage\n\n```csharp\nrecord class Employee(string Name, int Age);\n\nvar employees = new Employee[] {\n\tnew Employee(\"Alice\", 40),\n\tnew Employee(\"Bob\", 41),\n\tnew Employee(\"Charlie\", 42),\n\tnew Employee(\"Ethan\", 60),\n};\n\nvar json = \"\"\"\n\n[\n    \"and\", \n    [\"\u003e=\", \"Age\", 35], \n    [\"or\", [\"=\", \"Name\", \"Alice\"], [\"\u003e\", \"Age\", 45]]\n]\n\n\"\"\";\n\nvar filteredEmployees = employees.AsQueryable().WhereByJson(json);\n\n// Equals to LINQ lambda: \n// employees.AsQueryable().Where(x =\u003e x.Age \u003e= 35 \u0026\u0026 (x.Name == \"Alice\" || x.Age \u003e 45))\n\n```\n\nSee the demostration project `Sandwych.Jasper.Demo` for details.\n\n# Status\n\nPreAlpha, working in progress.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldrev%2Fjasper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldrev%2Fjasper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldrev%2Fjasper/lists"}