joelittlejohn/jsonschema2pojo

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

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 34 minutes ago
Added to GitGenius on September 10th, 2026
Created on June 22nd, 2013
Open Issues & Pull Requests: 250 (+0)
GitHub issues: Enabled
Number of forks: 1,675
Total Stargazers: 6,380 (+0)
Total Subscribers: 189 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 46
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,149 days
Stale 30+ days: 46
Stale 90+ days: 45

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • duplicate (4)
  • enhancement (2)
  • question (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

jsonschema2pojo is a code generator that produces Java types from JSON or JSON Schema documents and annotates them for use with data-binding libraries like Jackson and Gson.

The tool solves the problem of manually writing Java classes to represent JSON data structures. Rather than hand-coding POJOs that match a JSON schema, developers provide a schema or example JSON and the generator produces fully annotated Java classes ready for serialization and deserialization. The approach works by parsing JSON Schema or JSON documents, inferring or reading type information, and emitting Java source code with appropriate annotations for the target binding library.

The tool suits projects where Java applications need to consume or produce JSON data with strong typing. It is particularly valuable when working with APIs that provide schema documentation, as it eliminates the tedious and error-prone work of keeping Java models synchronized with evolving schemas. The project offers both Maven and Gradle plugins for integration into build pipelines, making it practical for teams that want schema-driven code generation as part of their standard workflow.

The project maintains active engagement with its issue tracker, responding to bug reports and feature requests. Development includes regular updates to support new versions of popular data-binding libraries and Java language features. The codebase receives contributions addressing compatibility with emerging tools and addressing edge cases in schema interpretation. The maintainers have established clear documentation and examples on the project website to help users get started with both basic and advanced use cases.