(#2) Found a way to use POSIX sed(1) after all.

The limitation here is that your JSON can't contain ASCII record separator characters.