{"id":18395402,"url":"https://github.com/janchy2/json-expression-parser-cpp","last_synced_at":"2026-04-16T11:02:43.082Z","repository":{"id":260949848,"uuid":"882796089","full_name":"janchy2/JSON-Expression-Parser-Cpp","owner":"janchy2","description":"A C++ console application that allows evaluating expressions on a JSON file.","archived":false,"fork":false,"pushed_at":"2024-11-03T19:48:08.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T14:46:56.019Z","etag":null,"topics":["cpp","json","parser","tokenizer"],"latest_commit_sha":null,"homepage":"","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/janchy2.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":"2024-11-03T19:27:12.000Z","updated_at":"2024-11-03T19:48:11.000Z","dependencies_parsed_at":"2024-11-03T20:27:50.622Z","dependency_job_id":null,"html_url":"https://github.com/janchy2/JSON-Expression-Parser-Cpp","commit_stats":null,"previous_names":["janchy2/json-expression-parser-cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/janchy2/JSON-Expression-Parser-Cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janchy2%2FJSON-Expression-Parser-Cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janchy2%2FJSON-Expression-Parser-Cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janchy2%2FJSON-Expression-Parser-Cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janchy2%2FJSON-Expression-Parser-Cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janchy2","download_url":"https://codeload.github.com/janchy2/JSON-Expression-Parser-Cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janchy2%2FJSON-Expression-Parser-Cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272116676,"owners_count":24876266,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cpp","json","parser","tokenizer"],"created_at":"2024-11-06T02:10:52.020Z","updated_at":"2026-04-16T11:02:43.075Z","avatar_url":"https://github.com/janchy2.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"A **C++** console application that allows evaluating expressions on a **JSON** file.\n\nExample of usage:  \n\n - test.json is a JSON file with the content:\n{\"a\": { \"b\": [ 1, 2, { \"c\": \"test\" }, [11, 12] ]}}\n- ./json_eval is the console application\n\nThe application supports:\n\n- Trivial expressions with JSON paths:\n\n  $ ./json_eval test.json \"a.b[1]\"\n  \n  2\n\n  $ ./json_eval test.json \"a.b[2].c\"\n  \n  test\n  \n  $ ./json_eval test.json \"a.b\"\n  \n  [ 1, 2, { \"c\": \"test\" } ]\n  \n- Expressions in the subscript operator []:\n  \n  $ ./json_eval test.json \"a.b[a.b[1]].c\"\n  \n  test\n\n- Intrinsic functions: min, max, avg, sum, size:\n\n  min, max, avg and sum return the min, max element, avg of or sum of elements from the passed array or arguments.\n  \n  $ ./json_eval test.json \"max(a.b[0], a.b[1])\"\n  \n  2\n  \n  $ ./json_eval test.json \"min(a.b[3])\"\n  \n  11\n  \n  size - returns size of the passed object, array or string\n  \n  $ ./json_eval test.json \"size(a)\"\n  \n  1\n  \n  $ ./json_eval test.json \"size(a.b)\"\n  \n  4\n  \n  $ ./json_eval test.json \"size(a.b[a.b[1]].c)\"\n  \n  4\n  \n\n- Number literals:\n\n  $ ./json_eval test.json \"max(a.b[0], 10, a.b[1], 15)\"\n  \n  15\n\n- Arithmetic binary operators: +, -, *, /:\n\n  $ ./json_eval test.json \"a.b[0] + a.b[1]\"\n  \n  3\n  \nThe application uses async tasks to speed up the evaluation of operator expressions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanchy2%2Fjson-expression-parser-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanchy2%2Fjson-expression-parser-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanchy2%2Fjson-expression-parser-cpp/lists"}