Key Elements

  • owa_util.mime_header('application/json'): Sets the HTTP content type to JSON.

  • htp.p('Cache-Control: no-cache'): Disables caching to ensure fresh data.

  • htp.prn(l_json): Prints the resulting JSON to the response body.