title: Converting JSON Data to a set of Java objects
body: <p>Is there a tool that generates the JSON objects in Java when given JSON data? This tool would either assume one of the "popular" JSON library or would let you specify the JSON library to be used.
  For example  with valid JSON data </p>
  
  <pre><code>{
      "age":100,
      "name":"mkyong.com",
      "messages":["msg 1","msg 2","msg 3"]
  }
  </code></pre>
  
  <p>when using "<code>org.json.simple.*</code>" the tool would generate something like this</p>
  
  <pre><code>JSONObject obj = new JSONObject();
  obj.put("name", "mkyong.com");
  obj.put("age", new Integer(100));
  
  JSONArray list = new JSONArray();
  list.add("msg 1");
  list.add("msg 2");
  list.add("msg 3");
  
  obj.put("messages", list);
  </code></pre>