Awesome Open Source
Awesome Open Source

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:


Useful pages:

Project resources:

Licensed under the Apache License, Version 2.0.


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

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
java (29,512
json (1,070
gradle-plugin (136
json-schema (128
maven-plugin (49
jackson (34
gson (30

Find Open Source By Browsing 7,000 Topics Across 59 Categories