In order to do it correctly you have to be able to parse json first. You can of course write some sed script to do the job, but it will be a dirty hack that will break the moment it gets slightly different json input. If your json parser can't handle the input I suggest asking maintainers of mastodon how they expect this to work.
Обсуждают сегодня