Developing for Json, why does REST API response contain the bean name?


0 votes
asked Mar 2, 2016 by Babineauxwit (930 points) 1 flag
I need response like:[ { "id": 1, "site": "Google", "name": "abc", "value": "111", "level": "BASE", "character": "&" }, {

3 Answers

0 votes
answered Mar 2, 2016 by Nal_3137 (1,320 points)
selected Mar 4, 2016 by daffern
 
Best answer

Luckily, the response is now prepared and begins to be served to the client.
The RESTful service responds with identical JSON in both cases.

More details in this link https://www.airpair.com/java/posts/spring-streams-memory-efficiency
commented Mar 2, 2016 by zaffuto_p (1,230 points)
This is an old question and things have changed since the answer was accepted
–1 vote
answered Mar 14, 2016 by server (1,470 points)
This is my second time encounter this problem
Also like this one Tutorial - REST API design and implementation with Jersey ...
0 votes
answered Apr 27, 2016 by And_5912 (990 points) 1 flag
Chrome usually handles this through user preferences. You can also use this one

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...