model json generation should be a hash, not an array of hashes