Walk on the web flow

the goal is to leave some links that seem interesting to me (but also to share them)

Home TagCloud All Posts
View on GitHub
7 November 2024

Zoom on java Json Libraries

by snonov

Quick drop it on some Java references libraries to work with Json.

Two purposes :

Java libs to handle Json

Generate your Java Pojo

From an OpenAPI definition (usually in a swagger.json or openapi.yaml file)

Swagger codegen

With Spring and Feign (using OpenAPI Generator)

From a Json schema

Jsonschema2Pojo : https://github.com/joelittlejohn/jsonschema2pojo

From raw JSon

Online generator :
Quicktype : https://quicktype.io/ and https://app.quicktype.io/#l=Java
JsonSchema2pojo : https://www.jsonschema2pojo.org/ (from json AND json schema)

Ide integration : Json2java plugin : https://plugins.jetbrains.com/plugin/18267-json2java

Generate your json schema from json

Tool/Library Name: JSONSchema.net
Nature: Online Tool
Language: -
URL: https://www.jsonschema.net/

Tool/Library Name: Quicktype
Nature: Online Tool
Language: -
URL: https://quicktype.io/

Tool/Library Name: JSON to JSON Schema (IntelliJ Plugin)
Nature: IDE Plugin
Language: Java
URL: https://plugins.jetbrains.com/plugin/17611-json-to-schema

Tool/Library Name: GenSON
Nature: Library, CLI Tool
Language: Python
URL: https://github.com/wolverdude/genson

Tool/Library Name: jsonschema-generator (Java)
Nature: Library
Language: Java
URL: https://github.com/victools/jsonschema-generator

Tool/Library Name: jq (Custom Script)
Nature: Script Tool (with jq)
Language: Linux/Unix Shell
URL: https://stedolan.github.io/jq/

tags: Java - Ecosystem - Librairies - Json - Zoomon - Jackson - Openapi - Swagger - Pojo - Contract - Generate