JSON marshalling for save/restore of Hll in progress

It makes me uneasy that marshalling the struct actually mutates its state, even if it's just internal state.