jsonschema2pojo-core

Generate DTO style Java classes from JSON Schema documents (FORK)

License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.github.samskiter.jsonschema2pojo
ArtifactId

ArtifactId

jsonschema2pojo-core
Last Version

Last Version

0.4.23-fork.3
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download jsonschema2pojo-core

How to add to project

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

Dependencies

compile (13)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.2.0
com.google.code.javaparser : javaparser jar 1.0.11
com.google.android : android jar 4.1.1.4
com.sun.codemodel : codemodel jar 2.6
com.google.code.gson : gson jar 2.5
com.squareup.moshi : moshi jar 1.1.0
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.codehaus.jackson : jackson-mapper-asl jar 1.9.11
org.apache.commons : commons-lang3 jar 3.2.1
com.google.code.findbugs : annotations jar 1.3.9

test (3)

Group / Artifact Type Version
junit : junit jar 4.11
org.hamcrest : hamcrest-all jar 1.3
org.mockito : mockito-all jar 1.9.5

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 1.x, 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>0.4.22</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.

Versions

Version
0.4.23-fork.3
0.4.23-fork.2
0.4.23-fork.1