Bungee - chapter 4 - JSON

var undef;

Firebug display:
>>> Object.toJSON(undef)

No empty quotes are displayed as indicated by example // => ''

var doudou = { first: 'Élodie', last: 'Jaubert', birthDate: new
Date(1980, 9, 29), // 0 == January
gang: [ 'Camille', 'Clotilde', 'Diane' ],
getJob: function() { return 'Chef du monde' },
blond: false

Firebug display:
>>> Object.toJSON(doudou);
"{"first": "Élodie", "last": "Jaubert", "birthDate":
"1980-10-29T00:00:00Z", "gang": ["Camille", "Clotilde", "Diane"],
"blond": false}"

How can the accent above E in Elodie be supported across browsers?

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 rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to