jsonschema2pojo generates Java types from JSON Schema and can annotate those types for data-binding with Jackson 1.x, Jackson 2.x or Gson. This article indroduce some examples.
JSON formatieren
Gson gson = new GsonBuilder() .setPrettyPrinting() .create(); var x = gson.toJson(obj); |