title: Mapping JSON objects in Java
body: <p>What is the best way to map JSON objects in Java? I'm talking about something like Dozer or MapStruct for JavaBeans but for JSON. I found these two projects:</p>
  
  <p><a href="https://github.com/dregenor/jsonMapper" rel="nofollow noreferrer">JSON Mapper 1</a></p>
  
  <p><a href="https://github.com/onechiporenko/json-mapper" rel="nofollow noreferrer">JSON Mapper 2</a></p>
  
  <p>But they are in Javascript. So is it a good idea to embed them in my Java application running them with Nashorn? Or is it better to use straightforward Jackson library? But the second would imply reading the JSON, mapping it to a Java object and then converting the Java Object to another JSON - seems not very nice to me.</p>