ShelfLife and NewerThan serialize state with JSON.