Store savestate as JSON.