|
From: Morch, H. <hol...@na...> - 2011-02-09 13:27:58
|
Hello,
I've a Method which returns just a Sting. The @Produces mime types are {"application/*+json", "application/json", "text/json"} but if one requests the data he gets only the String which is returned by the Method. Correct JSON format would be a quoted string (http://www.json.org/ Section: string).
Example:
Method return value: Test
HTTP Content: Test
Expected Content: "Test"
I'm using Jackson as JSON Provider and I think he would format it correctly. Unfortunately the StringTextStar MessageBodyWriter is chosen instead of Jackson. I saw that you're sorting the MessageBodyWirters somehow and I'm sure you have good reasons to sort this way. Is there a way to get Jackson as MessageBodyWriter in this case? How can I do that?
Kind regards
Holger
-------------------------------------------
Holger Morch
Software Engineer
NAVTEQ Germany GmbH & Co.KG
The information contained in this communication may be CONFIDENTIAL and is intended only for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please notify the sender and delete/destroy the original message and any copy of it from your computer or paper files.
|