struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Milanovic" <>
Subject REST plugin, JSON
Date Fri, 14 Nov 2008 09:07:52 GMT
Hi All,

I am using the latest 2.1.3 snapshot (as opposed to 2.1.2) because I
have hierarchical resources. I've sent two emails to the users list
but they have gone unanswered, and since the questions are about the
2.1.3-SNAPSHOT version it may be better to post them here anyway so
here they are:

1.  I want to make sure that the content encoding for the JSON output
from the server is always in UTF8. How can I do this?
2. I noticed that when the plugin serializes the response to JSON a
null string is serialized as an empty string and a null array is
serialized as an empty array. Would it be more correct to serialize
them as null? I would like to distinguish between a null string and an
empty string.
3. The plugin sets the content type to text/javascript. I am not sure
if application/json (
is more appropriate?

I suppose I could do some of this using custom interceptors but (1)
and (3) could be added as config params or something similar?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message