httparty icon indicating copy to clipboard operation
httparty copied to clipboard

Stripe's API requires duplicate json keys

Open RichardGrossman opened this issue 11 years ago • 1 comments

HTTParty:

:body => [ { "amounts[]" => '10', "amounts[]" => '24' } ].to_json,

--> warning: duplicated key at line 50 ignored:

Curl handles it like this:

-d amounts[]='14' -d amounts[]='26'

Any suggestions while we wait for Stripe to stop demanding invalid JSON in their request?

RichardGrossman avatar Jul 29 '15 19:07 RichardGrossman

Odd. I don't have any off the top of my head. Perhaps hit up the mailing list and maybe someone there has hit it. Closing here as not really an httparty issue. The httparty mailing list is on google groups, just search for it.

jnunemaker avatar Jul 30 '15 12:07 jnunemaker