Good Day - While I read through these comments, I decided for the first time in awhile to throw in my own two cents.
JSON stands for: JavaScript Object Notation. If we take the first word in that title: JavaScript, we get our answer. JSON is, through it's basis, JavaScript -- so set the MIME type as so; application. Just because you can read text and understand what it means and what it does is not a valid method to describe the data as simple text. I can read binary code (albeit slowly), but that does not mean it is text. --Will ----- Original Message ----- From: "Peter Michaux" <[EMAIL PROTECTED]> To: [email protected] Sent: Monday, January 22, 2007 10:56:30 AM (GMT-0700) US/Mountain Subject: [Rails-spinoffs] Re: About X-JSON header and evil things... ;) On 1/19/07, Kjell Bublitz <[EMAIL PROTECTED]> wrote: > > Thats why i chose "text/x-json" over "application/x-json". It is > readable text, after all I puzzled over the choice of "application" first but can think of a couple reasons "application" could be more natural. JSON is expressed in JavaScript. JavaScript is distributed as text not is some unreadable compiled binary. If it could be distributed in a small compiled form it surely would and so "application" would be more clearly appropriate. JSON is expressed in JavaScript. JavaScript is a programming language that describes behavior aspect of a web page. Behavior is in the application realm. Peter -- JavaScript for Rails: http://forkjavascript.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
