Save history snapshot for later

Hi, i don’t know if its possible, but i want to save my history snapshot I made for later usage. Like In json or what suits best

The easy way is exporting every snapshot as PSD file but I really want to avoid this and have just one PSD

Can someone tell me if its even possible and give me a hint?