Fixed dumping json - added copying string workaround.

Updated json stat docs.