I read in CodeRanch about to libraries called Jackson and gson. I am an "advanced beginner" in Java and Eclipse.
I found this article and tried the setup. It is missing information for a complete beginner on creating the package and classes. Otherwise it was super friendly.
I wanted to share the information because after reading tons of information on this site I was overwhelmed and did not know how to proceed. This should be of value to somebody like I was 12 hours ago struggling with this topic.
Personally, I don't like "how to" guides that are full of snapshots of IDE operations. Not all of us use the same IDE - I'm not even sure which IDE was using, in fact. And IDEs are too often a crutch that keeps you from understanding what you are actually doing and why.
JSON, XML and YAML are all text-format serializations of 2-dimensional structures. Java, however, can digest such serializations and create and link JavaBeans (POJOs) from those serializations - provided you have suitable Java code. And since there are libraries for all of the above, you don't generally need to re-invent that part. What you end up with is in computer science terms known as a "graph", which is to say a network of interconnected objects, and has nothing to do with things like bar charts or the like.
To gain maximum utility, you can often annotate JavaBean class definitions to assist in the translation process. And, since these beans are preferably POJOs, you can even apply more than one set of annotations to the bean definitions, which is useful if an app needs to be able to read or output multiple formats.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
It is missing information for a complete beginner on creating the package and classes.
Perhaps you can fill in the missing information here?
To do that you would have to explain how to do that in Eclipse (at least the screens shown look a lot like Eclipse). That's the topic of a whole nother article, in my opinion. At the very least it would double the size of the article which kevin posted, and not in a good way.
So my attitude is more like: Okay, complete beginner, I know you want to learn how to parse JSON but you're going to have to spend some time on the absolute basics.
It's feeding time! Give me the food you were going to give to this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners