Output valid JSON for `helios masters`

Fixes #177