Fix Hash#to_json key generation