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.6K Stars 1.5K Forks Other 1.2K Commits 164 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

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.1
    
        ${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.