I feel like simply including an example here is insufficient. There isn't anything special about == going on here; you can substitute >= and get a valid result. I don't mind the example but this entire behavior of value == value when the lefthand value is scalar and the righthand value is an array (maybe object?) appears undefined. The sentence there - "(this, and the other comparison operators, work on all JSON scalar values)" - in fact implies that the array version shouldn't work.