Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Jsonschema2pojo | 6,051 | 115 | 46 | 16 hours ago | 55 | February 18, 2023 | 190 | apache-2.0 | Java | |
Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc | ||||||||||
Immutables | 3,325 | 476 | 492 | 8 days ago | 136 | June 05, 2023 | 407 | apache-2.0 | Java | |
Annotation processor to create immutable objects and builders. Feels like Guava's immutable collections but for regular value objects. JSON, Jackson, Gson, JAX-RS integrations included | ||||||||||
Jsontokotlinclass | 2,750 | 10 months ago | 2 | August 13, 2022 | 34 | gpl-3.0 | Kotlin | |||
🚀 Plugin for Android Studio And IntelliJ Idea to generate Kotlin data class code from JSON text ( Json to Kotlin ) | ||||||||||
Robopojogenerator | 704 | 2 months ago | 10 | mit | Kotlin | |||||
IntelliJ IDEA/Android studio plugin: Json to Java, Java records and Kotlin POJO (GSON, Logan Square, Jackson, FastJSON, AutoValue, Moshi, Lombok) | ||||||||||
Methanol | 197 | 8 | a month ago | 9 | May 09, 2022 | 3 | mit | Java | ||
⚗️ Lightweight HTTP extensions for Java | ||||||||||
Httpmocker | 167 | 2 years ago | 3 | February 26, 2021 | 3 | other | Kotlin | |||
HttpMocker is a simple HTTP mocking library written in Kotlin to quickly and easily handle offline modes in your apps | ||||||||||
Jmespath Java | 137 | 9 | 11 | 9 months ago | 7 | December 04, 2021 | 14 | bsd-3-clause | Java | |
A Java implementation of JMESPath | ||||||||||
Jsontokotlinclass | 131 | 3 years ago | mit | Java | ||||||
Intellij Idea, Android Studio plugin for generating Kotlin data classes from JSON. Helps to avoid writing boilerplate code for model classes. Supports annotations for Gson, Moshi, Jackson. | ||||||||||
Javautils | 111 | 4 years ago | apache-2.0 | Java | ||||||
java utils | ||||||||||
Easyjson | 109 | 2 | 9 | 10 months ago | 52 | September 09, 2022 | 14 | apache-2.0 | Java | |
Provides an unified JSON access API, you can adapter any JSON library to Gson, Jackson, FastJson with easyjson。 提供了一个JSON门面库,就像slf4j一样。easyjson本身不做json的操作,完全依赖于底层实现库。可以直接使用Easyjson的API,底层的JSON库随时可切换。也可以使用其中某个json的API,然后通过easyjson适配给其他的json库 |
jsonschema2pojo generates Java types from JSON Schema (or example JSON) and can annotate those types for data-binding with Jackson 2.x or Gson.
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.2.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>
A very simple Gradle example:
plugins {
id "java"
id "org.jsonschema2pojo" version "1.2.1"
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
}
jsonSchema2Pojo {
targetPackage = 'com.example'
}
Useful pages:
Project resources:
Special thanks:
Licensed under the Apache License, Version 2.0.