On Mon, Feb 04, 2013 at 07:36:35PM -0800, Rafael Reuber wrote:
> When I sent a json using curl, the request_body is a string like these: 
> '{user:johnny , email: [email protected]}'. 
> But the correct format is '{"user":"johnny" , "email": 
> "[email protected]"}'. This could be a curl's bug.

It's more likely a shell quoting bug:

  $ echo {"hello": "world"}
  {hello: world}

  $ echo '{"hello": "world"}'
  {"hello": "world"}

Marius Gedminas
-- 
ultimate_answer_t deep_thought(void) { sleep(years2secs(7500000)); return 42; }
        -- ConceptJunkie on Slashdot

Attachment: signature.asc
Description: Digital signature

Reply via email to