Generate plain old Java objects from JSON or JSON-Schema. For each property present in the 'properties' definition, we add a property to a given Java class according to the JavaBeans spec. A private field is added to the parent class, along with accompanying accessor methods (getter and setter). If additionalProperties is specified and set to the boolean value false, then the generated Java type does not support additional properties. If the additionalProperties node is undefined (not present), null or empty, then a new bean property named "additionalProperties", of type Map<String,Object> is added to the generated type (with appropriate accessors). The accessors are annotated to allow Jackson to marshal/unmarshal unrecognised (additional) properties found in JSON data from/to this map.

Features

  • You can use jsonschema2pojo as a Maven plugin
  • You can use jsonschema2pojo as a command line utility
  • You can use jsonschema2pojo as a Gradle plugin or embedded within your own Java app
  • Description text always appears after title text
  • Using the format rule for a property can influence the Java type chosen to represent your property values
  • The existingJavaType property allows existing Java types to be used in your POJOs

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

Apache License V2.0

Follow jsonschema2pojo

jsonschema2pojo Web Site

You Might Also Like
Achieve perfect load balancing with a flexible Open Source Load Balancer Icon
Achieve perfect load balancing with a flexible Open Source Load Balancer

Take advantage of Open Source Load Balancer to elevate your business security and IT infrastructure with a custom ADC Solution.

Boost application security and continuity with SKUDONET ADC, our Open Source Load Balancer, that maximizes IT infrastructure flexibility. Additionally, save up to $470 K per incident with AI and SKUDONET solutions, further enhancing your organization’s risk management and cost-efficiency strategies.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of jsonschema2pojo!

Additional Project Details

Programming Language

Java

Related Categories

Java JSON Software

Registered

2021-09-30