• 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: Simple JSON example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple JSON example


  • Subject: Re: Simple JSON example
  • From: George Domurot <email@hidden>
  • Date: Thu, 18 Aug 2011 21:29:25 -0700

Hi Calven,

If you have a hook to pull down a JSON object, use a package to process this data into the appropriate object/array:

	http://json.org/

Then, you can easily parse the data and push it into your database.

-G


On Aug 18, 2011, at 1:06 PM, Calven Eggert wrote:

> Hi, All
>
> I'm to write a java app to read data from a url that is JSON encoded.  I'll then parse the data and create records in an Oracle database using WO.
>
> I've read that there are two ways of doing this, using either the AJAX or ERREST framework.
>
> I've managed to get this call working via AJAX but I don't know what to do next:
> 	String baseURL = "http://allanl-dev.uhnres.utoronto.ca/capcr/capcr/public/service.php/greenlight_list/";;
> 	Client client = JavaJSONClient.create(baseURL, false);
>
> Is this the best approach?  Does someone have an example I can take a look at?  (The JSON example in AJAX doesn't seem to help me out)
>
>
> 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

 _______________________________________________
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

  • Follow-Ups:
    • Re: Simple JSON example
      • From: Calven Eggert <email@hidden>
References: 
 >Simple JSON example (From: Calven Eggert <email@hidden>)

  • Prev by Date: Re: Bundle Name Problem <solved>
  • Next by Date: Mark as deleted in a ERD2W app
  • Previous by thread: Simple JSON example
  • Next by thread: Re: Simple JSON example
  • Index(es):
    • Date
    • Thread