Render json data into HTML Header

I am writing an extension. I have a couple of approaches.

I would like to like json data, into the HTML section.

Is there any what do that from an extension ?

In the of the admin UI or in a page (front-end)? For the admin
UI, use a block like so:

  • content_for :page_scripts do
    = my_json_data

For a page, you’ll need to write a Radius tag that outputs the JSON you