• 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: ERRest with nested JSON
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERRest with nested JSON


  • Subject: Re: ERRest with nested JSON
  • From: Paul Yu <email@hidden>
  • Date: Sat, 31 Aug 2013 00:16:21 -0400

Does the Property


#  No type in the JSON
ERXRest.writeTypeKey=true

work?

Paul
On Aug 30, 2013, at 11:05 PM, Charles Young <email@hidden> wrote:

Hi Amedeo,

No - or at least I don't believe so. I'm using the vanilla ERRestRouteExample project as a testbed.

Cheers,
Charles



On Aug 30, 2013, at 4:45 PM, Amedeo Mantica <email@hidden> wrote:

Are u using extjs ?

Amedeo

Sent from my iPhone

On 31/ago/2013, at 00:36, Charles Young <email@hidden> wrote:

Hi All,

I have an API that I'm trying to recreate using Webobjects. The service communicates using nested JSON.

So Instead of using:
curl -X POST -d "{ name:'Andrew Schrag' }" http://localhost:62092/cgi-bin/WebObjects/RESTExample.woa/ra/Person.json

It expects something like:
curl -X POST -d "{'Person':{ name:'Andrew Schrag' }}" http://localhost:62092/cgi-bin/WebObjects/RESTExample.woa/ra/Person.json

Is there some simple way of creating an ERXRoute or an ERXKeyFIlter that will describe the nesting, or should I be looking at providing my own updateObjectWithFilter method that will assume a nested level.

Thanks for any hints.


Cheers,
Charles

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: 
 >Re: ERRest with nested JSON (From: Amedeo Mantica <email@hidden>)

  • Prev by Date: Re: ERRest with nested JSON
  • Next by Date: WOWODC 2013 recordings
  • Previous by thread: Re: ERRest with nested JSON
  • Next by thread: WOWODC 2013 recordings
  • Index(es):
    • Date
    • Thread