fix safeJSON

safeJSON leaks _id, rev and key.
1d3d5ba fixes that.