Ensure help is output in JSON if appropriate