Answer the question
In order to leave comments, you need to log in
What is the standard library for working with JSON in Java?
Good afternoon, comrades!
As part of learning Java, I am developing some application.
I made a limitation for myself: use only the standard libraries supplied with jdk7.
I need to make a request to the server (HTTP GET), get JSON in response and parse the received JSON, extracting the necessary data array from its middle.
How to get data and make a String containing JSON I have learned but I can't seem to find a standard library for converting JSON to Java objects....
What is the standard library for JSON to work? Google gives links to third-party libraries...
Thanks in advance, sorry if I'm bad at Google.
Answer the question
In order to leave comments, you need to log in
There is no such
one. If you want to write your own parser (I don’t see the point), then here is the specification
None. There is a set of specifications for working with json - JSR-000353
There are several implementations of it. I recommend Gson . It's good at handling generics, and unlike jackson, it hasn't grown into a monster that handles a large number of formats. There is only json.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question