I found this snippet of code in my travels in researching JSON:
var array = typeof objArray != \'object\' ? JSON.parse(objArray) : objArray;
It's the ternary conditional operator -- basically,
if (condition) { a = 4; } else { a = 5; }
becomes
a = condition ? 4 : 5;