Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-26 Thread Dan Brickley
On Tue, May 25, 2010 at 6:03 AM, Leah Culver wrote: > So yeah, I'm against supporting ONLY JSON. I'd be fine if the spec allowed > for form-encoded, XML or whatever else might become the hot new thing. I'm > really for leaving it up to the provider. I don't think it's up to OAuth to > force people

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-26 Thread Kris Selden
I like your response. I think application/json and application/xml would be fine without application/x-www-form-urlencoded. I just thought it made a good lowest common denominator for serialization which I think aids in making it simple to support multiple formats. On May 26, 2010, at 12:19 A

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-26 Thread Manger, James H
Kris, > The OAuth endpoint should be able to match the format(s) of the API it > protects. I had a quick look at the APIs for 24 services implementing OAuth (v1 or drafts of v2) as listed on the OAuth wiki. Of these 24 APIs, the response formats supported were: * 21 XML * 19 JSON * 16 XML and

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-25 Thread Marius Scurtescu
On Tue, May 25, 2010 at 1:40 AM, Pid wrote: > > The best summary of the arguments in favour of JSON was by Joseph Smarr > in response to my previous inquiry, which hasn't been superseded, I think. Yes, Joseph made a very good argument for JSON. My only objection is that form-encoded is still use

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-25 Thread Kris Selden
Once again, I want to plea the case for keeping the response simple key/value string pairs so it is trivial to serialize to multiple formats. The OAuth endpoint should be able to match the format(s) of the API it protects. Given this simple response payload, the spec can generically describe how

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-25 Thread Pid
On 25/05/2010 01:52, Dick Hardt wrote: > > On 2010-05-24, at 4:55 PM, Marius Scurtescu wrote: > >> And to add to this, this example shows that encoding is hard, JSON >> only solves decoding (in most cases, but not all). > > JSON solves encoding and decoding with the same library. > >> >> For al

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-24 Thread Leah Culver
To me this smells a lot like XML a few years ago... how XML is baked into XMPP and people thought that HTML should be converted to XML... seemed like a good idea at the time :D So yeah, I'm against supporting ONLY JSON. I'd be fine if the spec allowed for form-encoded, XML or whatever else might b

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-24 Thread Dick Hardt
On 2010-05-24, at 4:55 PM, Marius Scurtescu wrote: > And to add to this, this example shows that encoding is hard, JSON > only solves decoding (in most cases, but not all). JSON solves encoding and decoding with the same library. > > For all direct requests clients still need to encode and wit

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-24 Thread Marius Scurtescu
And to add to this, this example shows that encoding is hard, JSON only solves decoding (in most cases, but not all). For all direct requests clients still need to encode and without a library still need to figure what chars must be encoded. Introducing JSON because dealing with form-encoded is h

Re: [OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-24 Thread Eran Hammer-Lahav
This is a bad example. This deals with encoding for the purpose if the signature base string. Not the same as decoding responses which I doubt is a problem for Twitter as I think their token values are URL safe. EHL On 5/23/10 3:32 PM, "Dick Hardt" wrote: Frustration devs have with URL encod

[OAUTH-WG] Why JSON (Was: [oauth] Re: [twitter-dev] Hard lesson learned)

2010-05-24 Thread Dick Hardt
Frustration devs have with URL encoding. This is the core motivation to using JSON as the AS response format. -- Dick Begin forwarded message: > From: Andrew Badera > Date: May 23, 2010 2:57:44 PM PDT > To: twitter-development-t...@googlegroups.com > Cc: oa...@googlegroups.com > Subject: [oaut