Need help with jsonschema2pojo?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

joelittlejohn
5.4K Stars 1.5K Forks Other 1.2K Commits 144 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 3,030
swagger
openapi
epl
Groovy
668 commits
# 26,998
Shell
XML
Groovy
ant-tas...
38 commits
# 40,612
Shell
Groovy
Java
ant-tas...
20 commits
# 47,657
Java
sqlserv...
MongoDB
Groovy
15 commits
# 46,612
Groovy
XML
Jekyll
ant-tas...
12 commits
# 57,119
Spring
Shell
Groovy
ant-tas...
11 commits
# 65,336
Java
Shell
Groovy
ant-tas...
8 commits
# 6,474
Git
Kotlin
Groovy
ant-tas...
7 commits
# 79,110
Shell
HTML
Groovy
ant-tas...
6 commits
# 8,814
Groovy
Java
webfram...
microfr...
4 commits
# 6,879
Java
Groovy
wechat
wechat-...
3 commits
# 97,937
Shell
apache
Groovy
XML
3 commits
# 110,781
Shell
HTML
Groovy
ant-tas...
3 commits
# 110,823
HTML
dagger2
Shell
Groovy
3 commits
# 110,778
Shell
HTML
Groovy
ant-tas...
3 commits
# 110,613
Shell
Clojure
swagger
Groovy
3 commits
# 25,532
Kotlin
Groovy
ffmpeg
opencor...
3 commits
# 46,677
Groovy
openshi...
Swift
spring-...
2 commits
# 114,444
java8
Shell
Groovy
ant-tas...
2 commits
# 132,956
CSS
Groovy
Shell
ant-tas...
2 commits

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 or Gson.

Try jsonschema2pojo online
or
brew install jsonschema2pojo

You can use jsonschema2pojo as a Maven plugin, an Ant task, 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:

xml

    org.jsonschema2pojo
    jsonschema2pojo-maven-plugin
    1.1.0
    
        ${basedir}/src/main/resources/schema
        com.example.types
    
    
        
            
                generate
            
        
    

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

Project resources: * Downloads * Mailing list

Licensed under the Apache License, Version 2.0.

YourKit

Special thanks to YourKit, who support this project through a free license for their full-featured YourKit Java Profiler.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.