Working with Json: how to send object as response on rest in jersey

0 votes
asked Mar 4, 2016 by watah_Earth (570 points)
So that I can launch a specific activity that is needed. I have ResponseModel class, I want to send it's object in response to rest. Thx for your suggestions

3 Answers

0 votes
answered Mar 15, 2016 by schoenfelder (2,190 points)
Best answer
Take a look over this answer and this answer
And the last comment on this issue RESTful Web Services with Java JAX-RS using Jersey - Java ...
commented Mar 16, 2016 by abj6900 (780 points)
This is a classic problem with generics implemented with type erasure
0 votes
answered Apr 12, 2016 by vf_You (750 points)
This is because it never gets incremented in this case
Here is good article about this Developing RESTful Web Service Clients - Oracle
0 votes
answered Apr 20, 2016 by rkvMy (520 points)
That should fill the bill

Related questions

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!