Deep copy data before serializing
Merge branch 'json' into dev