I don't think this original value is valid json. Can you have keys in
arrays? Maybe instead you want something like:

{
 valuea: a,
 valueb: {
   valuec: c
 }
}

On Sun, Dec 4, 2011 at 4:52 PM, alta maiz <altam...@gmail.com> wrote:

> Hi Everyone,
>
> I'm pretty new to web.py and python generally, so please bear with me.
>
> I'm experiencing the exact same issue as posted here:
>
> http://groups.google.com/group/webpy/browse_thread/thread/3824c614943fb5f7/e9da2587fce7f660
>
> Only I can't use the solution provided in the response.
>
> What I'm trying to do is to get a raw, unmodified POST value, in json
> format, from the client.
>
> I've try three methods:
> val = web.input()
> val = web.data()
> val = web.webapi.rawinput()
>
> My json will look something like this:
> {
>  valuea: a,
>  valueb: [
>  valuec: c
>  ]
> }
>
> What I'm finding is that despite my best efforts, the original value
> is always transformed into something like this:
>
> {
>  valuea: b
>  valueb[0]valuec: c
> }
>
> For certain requests in my webapp, I want to use web.py as a proxy to
> another service. As such, I need to pass this value on to the other
> service without any modifications.
>
> Thank you for your help
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To post to this group, send email to webpy@googlegroups.com.
> To unsubscribe from this group, send email to
> webpy+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/webpy?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to