> In general, this approach avoids parsing the output of any command.
Somewhere, there has to be validation phases. Just because you have objects, doesn't mean they are well formed.
https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...
It turns out proper validation is way harder than parsing. There is a reason text based interfaces and formats are so pervasive.