The output of my JSON call can either be an Array or a Hash. How do I distinguish between these two?
Did you mean "Object" instead of "Hash"?
>>> var a = []; >>> var o = {}; >>> a instanceof Array true >>> o instanceof Array false