correct reading custom json and fixed json overwriting during copy