json-view icon indicating copy to clipboard operation
json-view copied to clipboard

How to integrate with JAX-RS

Open pablo-moreira opened this issue 8 years ago • 1 comments

Hello! Congratulations on the project.

Is there any way to perform JAX-RS integration.

pablo-moreira avatar Sep 01 '17 16:09 pablo-moreira

Right now there is no first-class support for JAX-RS the way there is for Spring. The reason for that is JAX-RS is a spec, not a framework. An integration could be written for implementations like Jersey, it just hasn't been yet.

You could use library as-is if you can add the module to the underlying Jackson ObjectMapper. You will have to return JsonView instances from your endpoints though.

monitorjbl avatar Sep 05 '17 11:09 monitorjbl