basically, JSON encoded blocks will lead to all sorts of escaping errors. It's better as an OSC parameter (ie free text, {ESC} terminated.