MCPcopy Create free account
hub / github.com/joelittlejohn/jsonschema2pojo

github.com/joelittlejohn/jsonschema2pojo @jsonschema2pojo-1.3.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release jsonschema2pojo-1.3.3 ↗ · + Follow
2,022 symbols 6,695 edges 222 files 339 documented · 17% 12 cross-repo links updated 2mo agojsonschema2pojo-1.3.3 · 2026-02-08★ 6,381185 open issues

Browse by type

Functions 1,765 Types & classes 257
What it actually does AI analysis from the code graph — generated when you open this
loading…
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.2</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.2"
}

repositories {
  mavenCentral()
}

jsonSchema2Pojo {
  targetPackage = 'com.example'
}

Useful pages: * Getting started * How to contribute * Reference * Latest Javadocs * Documentation for the Maven plugin * Documentation for the Gradle plugin

Project resources: * Downloads * Mailing list

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.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 1,765
Class 244
Enum 7
Interface 6

Languages

Java100%

Modules by API surface

jsonschema2pojo-maven-plugin/src/main/java/org/jsonschema2pojo/maven/Jsonschema2PojoMojo.java70 symbols
jsonschema2pojo-cli/src/main/java/org/jsonschema2pojo/cli/Arguments.java69 symbols
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/GenerationConfig.java65 symbols
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/DefaultGenerationConfig.java65 symbols
jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/rules/RuleFactory.java39 symbols
jsonschema2pojo-core/src/test/java/org/jsonschema2pojo/rules/TypeRuleTest.java38 symbols
jsonschema2pojo-integration-tests/src/test/java/org/jsonschema2pojo/integration/TypeIT.java36 symbols
jsonschema2pojo-integration-tests/src/test/java/org/jsonschema2pojo/integration/ConstructorsIT.java36 symbols
jsonschema2pojo-integration-tests/src/test/java/org/jsonschema2pojo/integration/yaml/YamlTypeIT.java35 symbols
jsonschema2pojo-integration-tests/src/test/java/org/jsonschema2pojo/integration/MediaIT.java30 symbols
jsonschema2pojo-integration-tests/src/test/java/org/jsonschema2pojo/integration/util/Jsonschema2PojoRule.java28 symbols
jsonschema2pojo-integration-tests/src/test/java/org/jsonschema2pojo/integration/DefaultIT.java27 symbols

Dependencies from manifests, versioned

${project.groupId}:jsonschema2pojo-core
${project.groupId}:jsonschema2pojo-maven-plugin
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml
com.fasterxml.jackson:jackson-bom
com.github.tomakehurst:wiremock-jre82.35.2 · 1×
com.google.code.findbugs:jsr3053.0.2 · 1×

For agents

$ claude mcp add jsonschema2pojo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page