Y
Y
Yu Yu2014-08-09 11:43:25
Java
Yu Yu, 2014-08-09 11:43:25

What is better to use to generate JSON in java?

To transfer data from the server to the client in a servlet GET request, followed by parsing in JS.
Jackson or gson?
Maybe XML is better?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2014-08-09
@xztau

Yes, no matter what you use. Whichever API you like best, then use it. JSON, like XML, is just text. Therefore, the result for all libs should be the same. An exception may be all sorts of spaces and line breaks, if they are not precisely regulated by the standard.

A
Alexander Taratin, 2014-08-09
@Taraflex

C json on the client to js is the easiest to work with.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question