I have a hash like:
h = {\'name\' => \'sayuj\', \'age\' => 22, \'project\' => {\'project_name\' => \'abc\', \'dur
In case the Marchal #dump/load pair isn't work, for rails there is a Hash's method #deep_dup, so you can:
Marchal
#dump/load
Hash
#deep_dup
h = {'name' => 'sayuj', 'age' => 22, 'project' => {'project_name' => 'abc', 'duration' => 'prq'}} h1 = h.deep_dup