{"id":37029292,"url":"https://github.com/valid4j/json-path-matchers","last_synced_at":"2026-01-14T03:30:50.204Z","repository":{"id":52545140,"uuid":"50732393","full_name":"valid4j/json-path-matchers","owner":"valid4j","description":"Matchers to test your JSON using json path expressions (based on jayway.jsonpath)","archived":false,"fork":false,"pushed_at":"2021-04-26T16:19:42.000Z","size":21,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-21T07:48:16.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/valid4j.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}},"created_at":"2016-01-30T16:10:47.000Z","updated_at":"2016-01-31T13:21:41.000Z","dependencies_parsed_at":"2022-09-06T23:31:09.832Z","dependency_job_id":null,"html_url":"https://github.com/valid4j/json-path-matchers","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/valid4j/json-path-matchers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valid4j%2Fjson-path-matchers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valid4j%2Fjson-path-matchers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valid4j%2Fjson-path-matchers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valid4j%2Fjson-path-matchers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/valid4j","download_url":"https://codeload.github.com/valid4j/json-path-matchers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/valid4j%2Fjson-path-matchers/sbom","scorecard":{"id":915171,"data":{"date":"2025-08-11","repo":{"name":"github.com/valid4j/json-path-matchers","commit":"aa3b45d79f6b5165cf3d5c2a0d674b8fcd33995e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-493p-pfq6-5258","Warn: Project is vulnerable to: GHSA-v528-7hrm-frqp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T20:42:13.682Z","repository_id":52545140,"created_at":"2025-08-24T20:42:13.682Z","updated_at":"2025-08-24T20:42:13.682Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T03:30:49.118Z","updated_at":"2026-01-14T03:30:50.048Z","avatar_url":"https://github.com/valid4j.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"json-path-matchers\n==================\n\nA library with [hamcrest-matchers](http://hamcrest.org/JavaHamcrest/) for testing JSON\nusing json path expressions, based on [JsonPath](https://github.com/jayway/JsonPath).\n\n# Getting started\n\nThis library is available at [Maven Central Repository](http://search.maven.org/).\nAdd this dependency to your `pom.xml`\n\n    \u003cdependency\u003e\n\t    \u003cgroupId\u003eorg.valid4j\u003c/groupId\u003e\n\t    \u003cartifactId\u003ejson-path-matchers\u003c/artifactId\u003e\n\t    \u003cversion\u003e1.1\u003c/version\u003e\n    \u003c/dependency\u003e\n\nCorrelation between different artifacts (i.e. compile dependency):\n\n| org.valid4j:json-path-matchers  | com.jayway.jsonpath:json-path |\n| ------------- | ------------- |\n| 1.1  | 2.1.0  |\n| 1.0  | 2.0.0  |\n\n# Usage guide\n\nStatically import the library entry point:\n\n    import static org.valid4j.matchers.jsonpath.JsonPathMatchers.*;\n\nNOTE: The actual evaluation of JsonPath will depend on the current configuration:\n\n    Configuration.setDefaults(...);\n\nThe matchers can be used to inspect different representations of JSON:\n\n    // As a String...\n    String json = ...;\n    \n    // or a file...\n    File json = ...;\n    \n    // or an already parsed json object...\n    Object json = Configuration.defaultConfiguration().jsonProvider().parse(content);\n    \nUsage examples:\n    \n    // Verify validity of JSON\n    assertThat(json, isJson());\n\n    // Verify existence (or non-existence) of JSON path\n    assertThat(json, hasJsonPath(\"$.message\"));\n    assertThat(json, hasNoJsonPath(\"$.message\"));\n\n    // Verify evaluation of JSON path\n    assertThat(json, hasJsonPath(\"$.message\", equalTo(\"Hi there\")));\n    assertThat(json, hasJsonPath(\"$.quantity\", equalTo(5)));\n    assertThat(json, hasJsonPath(\"$.price\", equalTo(34.56)));\n    assertThat(json, hasJsonPath(\"$.store.book[*].author\", hasSize(4)));\n    assertThat(json, hasJsonPath(\"$.store.book[*].author\", hasItem(\"Evelyn Waugh\")));\n\nCombine matchers for greater expressiveness\n    \n    // This will separate the JSON parsing from the path evaluation\n    assertThat(json, isJson(withoutJsonPath(\"...\")));\n    assertThat(json, isJson(withJsonPath(\"...\", equalTo(3))));    \n    \n    // Combine several JSON path evaluations into a single statement\n    // (This will parse the JSON only once)\n    assertThat(json, isJson(allOf(\n        withJsonPath(\"$.store.name\", equalTo(\"Little Shop\")),\n        withoutJsonPath(\"$.expensive\"),\n        withJsonPath(\"$..title\", hasSize(4)))));\n\nMatch on pre-compiled complex JSON path expressions\n\n    Filter cheapFictionFilter = filter(\n        where(\"category\").is(\"fiction\").and(\"price\").lte(10D));\n    JsonPath cheapFiction = JsonPath.compile(\"$.store.book[?]\", cheapFictionFilter);\n    String json = ...;\n    assertThat(json, isJson(withJsonPath(cheapFiction)));\n        \nUse typed matchers for specific JSON representations, if needed\n\n    String json = ...\n    assertThat(json, isJsonString(withJsonPath(\"$..author\")));\n\n    File json = ...\n    assertThat(json, isJsonFile(withJsonPath(\"$..author\")));\n\n## Project license\n\nThis software is licensed under [Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalid4j%2Fjson-path-matchers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalid4j%2Fjson-path-matchers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalid4j%2Fjson-path-matchers/lists"}