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

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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