jsonschema2pojo-core

Generate DTO style Java classes from JSON Schema documents

License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.github.blindpirate
ArtifactId

ArtifactId

jsonschema2pojo-core
Last Version

Last Version

1.1.0.4
Release Date

Release Date

Type

Type

jar
Description

Description

jsonschema2pojo-core
Generate DTO style Java classes from JSON Schema documents

Download jsonschema2pojo-core

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.blindpirate/jsonschema2pojo-core/ -->
<dependency>
    <groupId>com.github.blindpirate</groupId>
    <artifactId>jsonschema2pojo-core</artifactId>
    <version>1.1.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.blindpirate/jsonschema2pojo-core/
implementation 'com.github.blindpirate:jsonschema2pojo-core:1.1.0.4'
// https://jarcasting.com/artifacts/com.github.blindpirate/jsonschema2pojo-core/
implementation ("com.github.blindpirate:jsonschema2pojo-core:1.1.0.4")
'com.github.blindpirate:jsonschema2pojo-core:jar:1.1.0.4'
<dependency org="com.github.blindpirate" name="jsonschema2pojo-core" rev="1.1.0.4">
  <artifact name="jsonschema2pojo-core" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.blindpirate', module='jsonschema2pojo-core', version='1.1.0.4')
)
libraryDependencies += "com.github.blindpirate" % "jsonschema2pojo-core" % "1.1.0.4"
[com.github.blindpirate/jsonschema2pojo-core "1.1.0.4"]

Dependencies

compile (12)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.9.10.7
com.fasterxml.jackson.dataformat : jackson-dataformat-yaml jar 2.9.10
com.google.code.javaparser : javaparser jar 1.0.10
com.sun.codemodel : codemodel jar 2.6
com.google.code.gson : gson jar 2.5
com.google.code.findbugs : jsr305 jar 3.0.1
commons-lang : commons-lang jar 2.6
commons-io : commons-io jar 2.4
javax.validation : validation-api jar 1.0.0.GA
joda-time : joda-time jar 2.2
org.apache.commons : commons-lang3 jar 3.11
com.google.code.findbugs : annotations jar 1.3.9

test (6)

Group / Artifact Type Version
junit : junit jar 4.13.2
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-core jar 3.2.4
com.github.tomakehurst : wiremock jar 2.5.1
org.slf4j : slf4j-simple jar 1.7.24
org.apache.httpcomponents : httpclient jar 4.5.3

Project Modules

There are no modules declared in this project.

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:

<plugin>
    <groupId>org.jsonschema2pojo</groupId>
    <artifactId>jsonschema2pojo-maven-plugin</artifactId>
    <version>1.1.1</version>
    <configuration>
        <sourceDirectory>${basedir}/src/main/resources/schema</sourceDirectory>
        <targetPackage>com.example.types</targetPackage>
    </configuration>
    <executions>
        <execution>
            <goals>
                <goal>generate</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Useful pages:

Project resources:

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.

Versions

Version
1.1.0.4
1.1.0.3
1.1.0.2
1.1.0.1