Skip to content
Generate Java types from JSON or JSON Schema and annotates those types for data-binding with Jackson, Gson, etc
Java Scala HTML Groovy Other
Branch: master
Clone or download

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.

You can’t perform that action at this time.