title: Is there a java 11 native way to convert json to an object?
body: <p>This question: <a href="https://stackoverflow.com/questions/2591098/how-to-parse-json-in-java">How to parse JSON in Java</a> Has several answers which require including 3rd party libraries, including GSON, org.json and Jackson.</p>
  <p>I am using Adobe AEM, which is notoriously intolerant of including 3rd party libraries, so am trying to do the REST API calling with standard Java 11.  java 11 has the HTTPClient classes, which will give me JSON from the response.</p>
  <p>Now I need to convert Json into the required java object.</p>
  <p>E.g. I have a Person class with name and age fields, and want to get a Person object from something like {&quot;name&quot;:&quot;bob&quot;, &quot;age&quot;:12}</p>
  <p>I will also need something to convert a Java object into Json.</p>
  <p>Any suggestions?</p>
  <p>There is something called JsonObject in java 7, but I have not been able to find any examples which show this conversion.</p>