Registry / testing / json-path-assert

json-path-assert

JSON →
library3.0.0javamavenunverified

A library to query and verify JSON documents using JsonPath expressions.

<dependency> <groupId>com.jayway.jsonpath</groupId> <artifactId>json-path-assert</artifactId> <version>3.0.0</version> </dependency>
INSTALL
IMPORT
SIG · JSON-PATH-ASSERT
J
json-path-assert
testingjavav3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonPath
com.jayway.jsonpath.JsonPath

Read a value from a JSON string using JsonPath.

import com.jayway.jsonpath.JsonPath; String json = "{\"store\":{\"book\":[{\"title\":\"Sample\"}]}}"; String title = JsonPath.read(json, "$.store.book[0].title"); System.out.println(title);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
json-path-assert — mvn dependency:get json-path-assert · libregistry