[Playlist] an alternate xspf over json implementation
Chris Anderson
jchris at mfdz.com
Wed Jun 13 20:19:54 UTC 2007
On 6/13/07, Sebastian Pipping <webmaster at hartwork.org> wrote:
> One more thing: I've seen key names with quotes
> and without quotes: is both legal?
> What I mean is
>
> {
> "playlist" : { .. }
> }
>
> versus
>
> {
> playlist : { .. }
> }
>
According to [1] keys and strings must be double-quoted.
Grabb.it isn't valid 100% of the time by that measure. But we're just
using Rails' default to_json output, and it evals fine. The nice thing
about json is that parsing idiosyncrasies don't usually turn into data
idiosyncrasies. That said, we should probably get valid. :)
[1] http://simonwillison.net/2006/Oct/11/json/
--
Chris Anderson
http://jchris.mfdz.com
More information about the Playlist
mailing list