Ross ROSS = Recommend OSS · open-source software intelligence for agents

lukas-krecan/JsonUnit

Compare JSON in your Unit Tests observed · 2026-09-03

github.com/lukas-krecan/JsonUnit · Java · Apache-2.0 (permissive) observed · 2026-09-03

Health v2 · maintenance only

77/100

  • Activity 100
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

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: 5330
  • days_rel: n/a
  • days_push: 0
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1004 stars · 117 forks observed · 2026-09-03

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

JsonUnit is a Java library that simplifies JSON comparison in unit tests. It provides integrations with AssertJ, Hamcrest, Kotest, and Spring testing frameworks, with features like JsonPath support, value ignoring, and regex matching.

Use cases

  • compare JSON in unit tests
  • assert JSON responses in Spring MVC tests
  • ignore fields when comparing JSON
  • match JSON with JsonPath expressions
  • compare JSON ignoring array order
  • assert JSON structure with type placeholders
  • test REST API JSON payloads

When to choose

  • writing JVM unit tests that assert JSON output
  • testing Spring REST endpoints with JSON responses
  • you need lenient JSON comparison with ignored values or paths
  • you want AssertJ or Hamcrest style JSON assertions

When to avoid

  • you need to diff JSON files outside of tests
  • your project is not on the JVM
  • you need JSON schema validation rather than comparison

Facets

library · maturity active

testing json serialization testing developer-tools web-development jvm json-comparison assertj hamcrest spring-testing jsonpath unit-testing

1 source

Member repositories

RepositoryRoleHealth v2
lukas-krecan/JsonUnitmain77

For agents

markdown · JSON · MCP: product_card(name="lukas-krecan/JsonUnit")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem