jsonschema2pojo

by joelittlejohn

joelittlejohn / jsonschema2pojo

Generate Java types from JSON or JSON Schema and annotates those types for data-binding with Jackson...

5.3K Stars 1.4K Forks Last release: 9 months ago (jsonschema2pojo-1.0.2) Other 1.1K Commits 62 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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 1.x, Jackson 2.x or Gson.

Note: there are breaking changes between 0.5.1 and 1.0.0. Check the change log. Anything marked in bold in the 1.0.0 alpha, beta and final release is a breaking change.

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