I imagine something like so:
{
"delete":["123-234","567-700"],
"insert":[123,456],
"substrs":[{"foo":"bar"},[]]
}
Then delete the ranges from the string, convert the substrs to strings and insert them at the offset. replies(1):