changed json output to answer with top-level hash, not array