GitHub Hot Board

GitHub Hot Board · Repository archive

joelittlejohn/jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc (This description comes from the repository itself.)

Data at October 25joelittlejohn

Best

#455

All-time · Java facet

6.4K

Total stars

1.7K

Total forks

0

Days on boards (30d)

Project statusLicense: Apache-2.0Last push: May 2Open issues: 252

Collected since 2026-10-25; unknown = not yet harvested

Put your badge on the README · joelittlejohn/jsonschema2pojo[![Put your badge on the README](https://git.vaiox.xyz/api/badge/joelittlejohn/jsonschema2pojo.svg)](https://git.vaiox.xyz/en/repo/joelittlejohn/jsonschema2pojo)
<a href="https://git.vaiox.xyz/en/repo/joelittlejohn/jsonschema2pojo"><img src="https://git.vaiox.xyz/api/badge/joelittlejohn/jsonschema2pojo.svg" alt="Put your badge on the README" height="20"></a>

README

jsonschema2pojo Build Status Maven Central

jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 2.x, Jackson 3.x, or Gson.

Try jsonschema2pojo online
or brew install jsonschema2pojo

You can use jsonschema2pojo as a Maven plugin, a command line utility, a Gradle plugin or embedded within your own Java app. The Getting Started guide will show you how.

A very simple Maven example:

<plugin>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-maven-plugin</artifactId>
    <version>1.3.3</version>
    <configuration>
        <sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
        <targetPackage>com.example.types</targetPackage>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

A very simple Gradle example:

plugins {
  id "java"
  id "org.jsonschema2pojo" version "1.3.3"
}

repositories {
  mavenCentral()
}

jsonSchema2Pojo {
  targetPackage = 'com.example'
}

Useful pages:

Project resources:

Special thanks:

  • unkish
  • Thach Hoang
  • Dan Cruver
  • Ben Manes
  • Sam Duke
  • Duane Zamrok
  • Christian Trimble
  • YourKit, who support this project through a free license for the YourKit Java Profiler.

Licensed under the Apache License, Version 2.0.

Current rankings

Momentum, past 30 days

No leaderboard records in the last 30 days.

Similar projects · shared topics

← Back to boards