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 | 2 days 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 | 9 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库 |
Read full documentation at http://immutables.org
// Define abstract value type using interface, abstract class or annotation
@Value.Immutable
public interface ValueObject extends WithValueObject {
// WithValueObject is not yet generated, We extend With* to inherit `with*` method signatures
String getName();
List<Integer> getCounts();
Optional<String> getDescription();
class Builder extends ImmutableValueObject.Builder {}
// ImmutableValueObject.Builder will be generated and
// our builder will inherit and reexport methods as it's own.
// Static nested Builder will inherit all the public method
// signatures of ImmutableValueObject.Builder
}
// Use generated immutable implementation and builder
ValueObject v =
new ValueObject.Builder()
.name("Nameless")
.description("present")
.addCounts(1)
.addCounts(2)
.build();
v = v.withName("Doe");
//fetch values via standard getters
List<Integer> counts = v.getCounts();
Optional<String> description = v.getDescription();
ImmutableValueObject then would not be used outside of generated type. See about this and other generation styles here
Copyright 2013-2023 Immutables Authors and Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
See releases tab for release history. Archived changelog for earlier releases.