• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Returning JSON
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning JSON


  • Subject: Re: Returning JSON
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 18 Jun 2015 16:44:54 +0000
  • Thread-topic: Returning JSON

As always, with the WOCommunity
https://wiki.wocommunity.org/display/documentation/ERRest+Framework



On 2015-06-18, 9:03 AM, "Calven Eggert" wrote:

ok.  will do.  quick advice on where to start?

On Jun 18, 2015, at 12:02 PM, Chuck Hill <email@hidden> wrote:

You so very, very, very much want to look at ERRest.  You are re-inventing the wheel.  :-)

Chuck


On 2015-06-18, 9:00 AM, "Calven Eggert" wrote:

My app only has one purpose that that is to accept parameters in a DirectAction, which then returns the json output.  It calls a method to get the json string and then it sets the contents just like noted by hugi.


On Jun 18, 2015, at 11:52 AM, Hugi Thordarson <email@hidden> wrote:

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 <email@hidden> wrote:

public WOActionResults downloadJson() {
WOResponse response = new WORespnse();
response.setHeader( “application/json” );
response.setContentString( someStringContainingJSON );
return response;
}




Calven





Calven



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Returning JSON (From: Calven Eggert <email@hidden>)
 >Re: Returning JSON (From: Hugi Thordarson <email@hidden>)
 >Re: Returning JSON (From: Hugi Thordarson <email@hidden>)
 >Re: Returning JSON (From: Calven Eggert <email@hidden>)
 >Re: Returning JSON (From: Chuck Hill <email@hidden>)
 >Re: Returning JSON (From: Calven Eggert <email@hidden>)

  • Prev by Date: Re: Returning JSON
  • Next by Date: Re: port 80 refused
  • Previous by thread: Re: Returning JSON
  • Next by thread: Re: Returning JSON
  • Index(es):
    • Date
    • Thread