Update haddock for html/text/json to match code.