Re: [Catalyst] deserializing key value pairs Catalyst::Controller::REST

2008-07-30 Thread Hani Anani
Thanks Jochen and J.Shirley, What I was trying to do is access parameters from the URL so i could have a REST interface, something like http://foo.bar.com/rest/v1/db/source_destination_mapt/1/destination_account/2 I ended up doing something like this sub source_destination_map :Local :ActionCla

Re: [Catalyst] deserializing key value pairs Catalyst::Controller::REST

2008-07-25 Thread J. Shirley
On Fri, Jul 25, 2008 at 1:48 AM, Jochen Luig <[EMAIL PROTECTED]> wrote: > Hi Hani, > >> var postData = >> "source_account=1&destination_account=2&ingestor_id=10&source_id=1" >> > I think this is where it fails. As far as I can tell from your code, > postData should contain a JSON Object. > Try som

Re: [Catalyst] deserializing key value pairs Catalyst::Controller::REST

2008-07-25 Thread Jochen Luig
Hi Hani, > var postData = > "source_account=1&destination_account=2&ingestor_id=10&source_id=1" > I think this is where it fails. As far as I can tell from your code, postData should contain a JSON Object. Try something like: var postData = '{ "source_account": "1", "destination_account": "2",

[Catalyst] deserializing key value pairs Catalyst::Controller::REST

2008-07-24 Thread Hani Anani
Hello, I am having trouble getting deserialize to work correctly in the REST interface that i am building out. Here's the info: the debug message i get when running the catalyst server prints out: [debug] I would have deserialized, but there was nothing in the body! looks like nothing is retur