
Fixes Homebrew/homebrew#47914 by distinguishing between required, optional, and recommended dependencies when using `brew info --json=v1`. This is done by adding the `optional_dependencies` and `recommended_dependencies` fields to the JSON output. A good example of this fix is `brew info --json=v1 dtrx`. Closes Homebrew/homebrew#48196. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>