Java to json online => http://confdisadi.nnmcloud.ru/d?s=YToyOntzOjc6InJlZmVyZXIiO3M6MjE6Imh0dHA6Ly9iaXRiaW4uaXQyX2RsLyI7czozOiJrZXkiO3M6MTk6IkphdmEgdG8ganNvbiBvbmxpbmUiO30= It stays on your computer. The Java type generated by the schema will implement all the given interfaces. I think it is better to consider libraries on their own merits, instead of trying to deduce quality out of its authors visibility -- Doug has achieved many things, but that does not really change qualities of the particular lib. You can parse from String obj and Stream. For 1, see this benchmark: I did using which compares jackson, gson, genson, fastjson, org. I think it is better to consider libraries on their own merits, instead of trying to deduce quality out of its authors visibility -- Doug has achieved many things, but that does not really change qualities of the particular lib. It's meant to be a human-readable and compact solution to represent a complex data structure and facilitate data-interchange between systems. Example using an absolute reference: public class TreeNode { public List getChildren {. I only want to get the 100 elements from the third array. An would be required to make this code run. Although it is very simple to use, I am explaining the steps below. Below is a GitHub link with source code, pom details and good documentation. We will use the same example as above i. This post is a little bit old, but still I want to answer you question. Please follow the below steps. How to Convert JSON to XML or XML to JSON in Java - I only want to get the 100 elements from the third array. Let's say you have a class called User with the fields user, width, and height and you want to convert the following json string to the User object. Its external form is a string wrapped in curly braces with java to json online between the names and values, and commas between the values and names. The internal form is an object having get and opt methods for accessing the values by name, and put methods for adding or replacing values by name. Its external form is a string wrapped in square brackets with commas between the values. The internal form is an object having get and opt methods for accessing the values by index, and put methods for adding or replacing values. TreeSet;, then you could use the first one, as they are simple java classes. It provides various libraries which can be used with Java, I've personally used this one, which is an implementation of the work in the site, so it has exactly java to json online same class - methods etc in this. If you click the html links there you can find anything you want. The essence of this question was to give an one line of code which do the purpose. And since there are many apis available to do this I just wanted to give some additional info about the comparison of the efficiency of the apis too. So the essence of this answer which I meant was to give the code + some info about the comparison of efficiencies of the different apis mentioned by other fellows in this thread. Since it uses Java Reflection to create proxies, I'm thinking it won't work. Also see the top comments there, that benchmark may not be too reliable. Really, if speed is that important to you, you should probably design so you can inject a parser to change implementations easily, and do your own benchmark tests.