# joelittlejohn/jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc

Repository: https://github.com/joelittlejohn/jsonschema2pojo
Canonical: https://ross.abutalabs.com/products/jsonschema2pojo
Homepage: http://www.jsonschema2pojo.org
Language: Java
License: Apache-2.0
License Family: permissive
Topics: java, json-schema, json, jackson, gson, maven-plugin, gradle-plugin
Last push: 2026-05-02T01:04:21+00:00

## Health v2 (maintenance only)
Score: 80/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 80, release rhythm 69, longevity 100
- inputs: {"age_days": 4820, "days_push": 124, "days_rel": 206, "gap_med": 3.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6381, forks 1678 (observed 2026-08-28T04:09:42.956633+00:00)

## What it is
jsonschema2pojo generates Java types (POJOs) from JSON Schema or example JSON documents, annotating them for data-binding with Jackson 2.x/3.x, Gson, Moshi, or JSON-B. It can be used as a Maven plugin, Gradle plugin, command-line tool, Ant task, or embedded Java API.

## Use cases
- generate java pojos from json schema
- generate java classes from example json
- add jackson annotations to generated java types
- generate gson-annotated model classes
- integrate schema-based code generation into maven build
- generate java types from yaml schema
- generate validation-annotated java beans

## When to choose
- you need Java model classes matching a JSON Schema for data binding
- you want build-time code generation via Maven or Gradle plugins
- you need configurable annotation styles (Jackson, Gson, Moshi, JSON-B) and options like builders, primitives, or validation annotations

## When to avoid
- you work in a non-JVM language
- you need runtime schema-to-object mapping rather than compile-time generated classes
- you need code generation for languages other than Java

## Facets
- artifact type: library
- maturity: active
- function: serialization, cli, plugin-system
- domain: developer-tools, apis
- platform: jvm, cli, cross-platform
- tags: json-schema, pojo-generation, jackson, gson, maven-plugin, gradle-plugin, code-generation, json, java

## Member repositories
- joelittlejohn/jsonschema2pojo (main) score 80

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:42.956633+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:45:09.349940+00:00, confidence not recorded.
  - readme: https://github.com/joelittlejohn/jsonschema2pojo (fetched 2026-08-28T04:09:42.956633+00:00, sha f609b67b3262)
  - homepage: http://www.jsonschema2pojo.org (fetched 2026-08-29T08:42:04.525399+00:00, sha 6b634ed28ac8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
