L
L
longBurn2015-02-27 23:29:24
Java
longBurn, 2015-02-27 23:29:24

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

3 answer(s)
A
Arthur Asatryan, 2015-02-27
@longBurn

There is no such
one. If you want to write your own parser (I don’t see the point), then here is the specification

L
Leonid Sysoletin, 2015-02-28
@sysoletin

First link on Google for "java json parser"

B
bromzh, 2015-03-06
@bromzh

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 question

Ask a Question

731 491 924 answers to any question