> JSON has its own mime type:
>     application/json
> http://www.ietf.org/rfc/rfc4627.txt
> It's always a good thing to use it.

Thanks for the link -- that's good to know. However, I think I'll stick
to text/plain, because it makes it so easy to test JSON in your browser
(browsers then just show it as text). When you use application/json,
browsers will try to download it and save it to a file.

I guess you could have a URL that returns different content types at
different times, but that seems less than useful. In other words, you know
there's JSON coming based on the URL you've given. So for me the benefits
outweigh the drawbacks at this stage. :-)

> And please don't add all the AJAX helpers la Ruby On Rails into
> web.py, no one needs that. (If it was the initial question)

Agreed! Keep web.py nice and small. :-)

Cheers,
Ben.

-- 
Ben Hoyt, http://benhoyt.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to