Earlier quoted context omitted.
I would be happy if I never had to write a flaky text parser, for some command line tool, output again.
Then don’t, take json or some standard format with an off-the-shelf parser as stdin and write it as standard out. Then just use jq to munge data into json on one end and back out on the other.
These only exist for well known tools. And, these usually explode if you're not careful about the characters in your filename.