jsonwrite re-write complete