Add functions to serialize the modifications to one json string.