Friday, October 12, 2012

JSON " for strings, with neat diagrams


http://www.json.org/



http://stackoverflow.com/questions/4162642/python-single-vs-double-quotes-in-json
http://stackoverflow.com/questions/242813/when-to-use-double-or-single-quotes-in-javascript


which is easier to read? alert("It's game time"); or alert('It\'s game time'); – Ryan Miller Jun 9 '11 at 16:10
33 
How about this Ryan? alert("It's \"game\" time."); or alert('It\'s "game" time.');? – Francisc Oct 11 '11 at 18:37
3 
If single quotes always used and occasionally double quotes where the literal contains single quote, then we will have to type far less shift buttons and our left little finger will give us blessings. But yes, as @arne said, for JSON double quote should be used. – iSid Oct 31 '11 at 15:46
1 
Single quoting is easier to do when you're on a european keyboard (double quote is Shift+2 which isn't as sweet as tapping a single key conveniently by your right pinky). – Arne Apr 25 at 20:46
1 
@Arne There is no such a thing as an "European keyboard". E.g. the German keyboard requires shift for both types of quotes. (But single quotes are easier.) – ANeves Jun 18 at 15:53


No comments:

Post a Comment