Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3570

Re: REST JSON Response

$
0
0

Hi Vadim,

 

You mentioned

 

You may also develop and deploy your own type converter class (which should implement an interface org.codehaus.jettison.mapped.TypeConverter, method convertToJSONPrimitive()) and make use of it by Jettison if you need some advanced logic when producing elements values in JSON output.

 

So I would need to write this class but how do I deploy this class ? Or do I go with an adapter module approach ?

 

I see we can use Moxy for this use case. Java XML and JSON Binding: MOXy as Your JAX-RS JSON Provider - MOXyJsonProvider

 

Not sure how to implement this.

 

Can I just use Jackson for the response in the java mapping and instruct the sender rest adapter not to do any xml to json conversion ?

 

Thanks

Ravijeet


Viewing all articles
Browse latest Browse all 3570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>