// handle object elements as strings var a = { "null" : 42 }; result = a[null]==42 && a["null"]==42;