Skip to main content
Previous sectionNext section

Common URL Parameters

The Common URL Parameter ?format is available in most Service Registry public API calls. It controls the line breaks and indenting in the JSON responses. This parameter is available on all Service Registry Public API calls. By default, these calls return JSON with a single space separating each elements and with no line breaks.

URL Parameters

?format=format-code

Optional parameter that formats and indents the returned JSON.

Where format-code contains one or more of the following codes:

  • n—Terminate each element of the JSON response with a newline character.

  • w—Terminate each element of the JSON response with a newline/line feed.

  • i—Indent each level of the JSON response with four space characters or one tab. If a digit 1 through 9 is also specified, then indent by that number of spaces or tabs.

  • Digits 1 through 9—Indent each level of the JSON response with the specified number of spaces.

  • t—Use the tab character instead of the space character for indenting.

  • u—Convert JSON output to UTF-8 from its internal format.