CaptureActivity now save JSon data on exit.