{"id":1950,"date":"2017-06-10T19:11:58","date_gmt":"2017-06-10T17:11:58","guid":{"rendered":"https:\/\/bob-team.de\/wordpress\/?p=1950"},"modified":"2025-10-30T12:22:19","modified_gmt":"2025-10-30T11:22:19","slug":"converting-json-to-pojo","status":"publish","type":"post","link":"https:\/\/bob-team.de\/wordpress\/2017\/06\/10\/converting-json-to-pojo\/","title":{"rendered":"JSON verarbeiten"},"content":{"rendered":"<p>Artikel Oktober 2025: <a href=\"https:\/\/www.innoq.com\/de\/articles\/2025\/10\/java-jackson-mehr-als-nur-json\/\">Datenformate mit Jackson<\/a><\/p>\n<hr\/>\n<p><a href=\"https:\/\/github.com\/joelittlejohn\/jsonschema2pojo\">jsonschema2pojo<\/a> generates Java types from JSON Schema and can annotate those types for data-binding with Jackson 1.x, Jackson 2.x or Gson. <a href=\"https:\/\/dzone.com\/articles\/converting-json-to-pojos-using-java\">This article<\/a> indroduce some examples.<\/p>\n<p><strong>JSON formatieren<\/strong><\/p>\n<pre lang=\"Java\">Gson gson = new GsonBuilder()\r\n    .setPrettyPrinting()\r\n    .create();\r\nvar x = gson.toJson(obj);<\/pre>\n<p><strong>Jq nutze<\/strong><\/p>\n<p><a href=\"https:\/\/jqlang.org\/manual\/\">jqlang.org\/manual<\/a> und <a href=\"https:\/\/github.com\/eiiches\/jackson-jq\">jackson-jq<\/a><br \/>\n<a href=\"https:\/\/play.jqlang.org\/\">jqlang.org\/play<\/a> oder <a href=\"https:\/\/www.devtoolsdaily.com\/jq_playground\/\">JQ Playground<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Artikel Oktober 2025: Datenformate mit Jackson 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); Jq nutze jqlang.org\/manual und jackson-jq jqlang.org\/play oder JQ Playground<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"link","meta":{"footnotes":""},"categories":[3],"tags":[56],"class_list":["post-1950","post","type-post","status-publish","format-link","hentry","category-java","tag-json","post_format-post-format-link","entry"],"_links":{"self":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts\/1950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/comments?post=1950"}],"version-history":[{"count":7,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts\/1950\/revisions"}],"predecessor-version":[{"id":4224,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/posts\/1950\/revisions\/4224"}],"wp:attachment":[{"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/media?parent=1950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/categories?post=1950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bob-team.de\/wordpress\/wp-json\/wp\/v2\/tags?post=1950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}