skyscreamer/JSONassert
Write JSON unit tests in less code. Great for testing REST interfaces. observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5327
- days_rel: n/a
- days_push: 766
- n_releases_24m: 0
Adoption not part of the score
1056 stars · 204 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Java library for writing JSON unit tests with minimal code, comparing JSON strings by logical structure and data. It integrates with JUnit and offers a lenient mode that tolerates array reordering and extra fields, making REST API tests less brittle.
Use cases
- assert JSON responses in JUnit tests
- test REST API endpoints return expected JSON
- compare JSON structures ignoring field order
- write less brittle JSON assertions
- get readable diffs for JSON test failures
- enforce strict JSON equality when needed
When to choose
- you're testing Java/JVM services that return JSON
- you want concise, readable JSON assertions in JUnit
- you need lenient comparison that tolerates ordering and extra fields
- you want clear error messages pinpointing JSON differences
When to avoid
- you're not on the JVM (Java/Kotlin/Scala)
- you need JSON Schema validation rather than value comparison
- you need to compare very large JSON documents with performance constraints
- you need non-JSON formats like XML or YAML
Facets
library · maturity maintenance
testing json serialization testing developer-tools apis web-development jvm cli json-assertions junit rest-testing test-assertions
4 sources
- readme: https://github.com/skyscreamer/JSONassert · fetched 2026-08-28 · 0ef9e707400c
- homepage: http://jsonassert.skyscreamer.org · fetched 2026-08-29 · bd9d03d0f7d2
- site_page: https://jsonassert.skyscreamer.org/quickstart.html · fetched 2026-08-29 · 87356283a0b2
- site_page: https://jsonassert.skyscreamer.org/apidocs/index.html · fetched 2026-08-29 · 52c0a42f283f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| skyscreamer/JSONassert | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="skyscreamer/JSONassert")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem