snapshotting before committing fully to using json_encode