V
V
Vanes Ri_Lax2018-06-05 13:02:38
Java
Vanes Ri_Lax, 2018-06-05 13:02:38

Are there standard ways to work with JSON?

Good afternoon,
I am writing a simple servlet, are there standard methods for working with JSON format in Java?
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2018-06-05
@vanesxl

There is the JAXB standard and there is the javax.json package which is part of JavaEE, which includes servlets as well. These are just the standard methods for working with JSON . In addition to these, it is extremely useful to know the reference implementation of org.json and the Jackson and Gson libraries that are used most often.

A
al_gon, 2018-06-05
@al_gon

...standard methods ....
Standard library? No.
But there is gson , jsonp and others.

P
protven, 2018-06-05
@protven

Not in the standard library. I would suggest using jackson
Here is an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question