I've never heard of stddata. What distro/environment provides it?
stdout would be the canonical location for putting JSON output (and the "data" of a command, generally). Then things like `| jq` just work.
> As of version 2.0.0, in Linux, tree will attempt to automatically output a compact JSON tree on file descriptor 3 (what I call stddata,) if present
https://github.com/Old-Man-Programmer/tree/blob/d501b58ff9cb...