add --installed to json info

Closes #29315.