add --installed to json info

When filtering the JSON to installed formulae, using `brew info --installed` is much faster than reading everything.