{"id":22202181,"url":"https://github.com/rumkin/json-exp","last_synced_at":"2025-07-17T03:08:12.886Z","repository":{"id":35133938,"uuid":"39341932","full_name":"rumkin/json-exp","owner":"rumkin","description":"JSON Expressions library","archived":false,"fork":false,"pushed_at":"2015-09-07T23:46:32.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T20:36:16.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/json-exp","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jesugmz/http-health-check","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumkin.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":"2015-07-19T17:15:44.000Z","updated_at":"2015-08-11T10:22:59.000Z","dependencies_parsed_at":"2022-08-17T21:30:35.871Z","dependency_job_id":null,"html_url":"https://github.com/rumkin/json-exp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rumkin/json-exp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fjson-exp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fjson-exp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fjson-exp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fjson-exp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumkin","download_url":"https://codeload.github.com/rumkin/json-exp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fjson-exp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265562271,"owners_count":23788498,"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-12-02T16:12:39.947Z","updated_at":"2025-07-17T03:08:12.871Z","avatar_url":"https://github.com/rumkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Travis](https://img.shields.io/travis/rumkin/json-exp/master.svg)\n\n# JSON Expressions\n\nExtensible expressions for json objects based on angular expressions parser.\n\n## Install\n\nInstall using npm:\n```\nnpm install json-exp\n```\n\n## String interpolation\n\n```javascript\nvar result = jsonExp({\n    name: \"World\",\n    hello: \"Hello ${name}\"\n});\n\nresult.hello; // =\u003e String: 'Hello World'\n```\n\n## Expression evaluation\n\n```javascript\nvar json = {\n    a: 1,\n    b: 2,\n    c: {$: 'a + b'}\n};\n\nvar result = jsonExp(json);\nresult.c // =\u003e Number: 3\n\nresult.a = 3;\nresult.c // =\u003e Number: 5\n```\n\n## Scope\n\n```javascript\nvar scope = {\n    name: 'World'\n};\n\nvar result = jsonExp({\n    hello: {$: '\"Hello \" + name'}\n}, {\n    scope: scope\n});\n\nresult.hello; // =\u003e String: 'Hello World'\n```\n\n## Depth\n\n```javascript\nvar result = JsonExp({\n    user : {\n        name: 'John'\n    },\n    userName: '$user.name'\n});\n\nresult.userName; // =\u003e String: 'John'\n```\n\n```javascript\nvar result = JsonExp({\n    user : {\n        name: 'John',\n        surname: 'Smith'\n        fullName: '${_.name} ${_.surname}'\n    }\n});\n\nresult.user.fullName; // =\u003e String: 'John Smith'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fjson-exp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumkin%2Fjson-exp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fjson-exp/lists"}