Remember kids… It’s always a good idea to give that example code a second 
glance _before_ you hit that send button.

public WOActionResults downloadJson() {
        WOResponse response = new WOResponse();
        response.setHeader( "application/json", "content-type" );
        response.setContent( someStringContainingJSON );
        return response;
}

Cheers,
 hugi


> On 18. jún. 2015, at 15:48, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> public WOActionResults downloadJson() {
>       WOResponse response = new WORespnse();
>       response.setHeader( “application/json” );
>       response.setContentString( someStringContainingJSON );
>       return response;
> }
> 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to