Fixed dumping json - added copying string workaround.

Updated json stat docs. 
The origin issue is: if periodic thread was failed to update stat file because of `read-only filesystem`, statistics have no information about it.