json methods now return hashes