Consider the following code:
hash1 = {\"one\" => 1, \"two\" => 2, \"three\" => 3} hash2 = hash1.reduce({}){ |h, (k,v)| h.merge(k => hash1) } ha
Might I suggest:
JSON.parse(hash_value.to_json)