I would suggest using jersey services with a custom services context
resolver. Put the following file in the same package as your jersey
services and replace **SerializableObject** with all of your root
elements. Then check out the getting started guide on
jersey.dev.java.net
@Provider
public ab
You need to set the HTTP header
*addHeader("Content-Disposition","attachment; filename=some-file-name.json"*
);
--Sri
On 8 April 2010 23:36, Sherry wrote:
> Hi,
> I would like to have my application return a JSON object for
> download.
>
> I'm trying to simulate the behavior that happens whe
Hi,
I would like to have my application return a JSON object for
download.
I'm trying to simulate the behavior that happens when I access the
page: "http://search.twitter.com/trends/current.json?exclude=hashtags";
in which the Chrome browser automatically downloads a file
current.json . I've tried