# Render json data into HTML Header

**URL:** <https://www.ruby-forum.com/t/render-json-data-into-html-header/156771>\
**Category:** Radiant CMS\
**Created:** [January 2, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/render-json-data-into-html-header/156771 "2009-01-02T18:29:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@bartee](https://www.ruby-forum.com/u/bartee)\
**Post date:** [January 2, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/render-json-data-into-html-header/156771/1 "2009-01-02T18:29:51Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![bartee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@bartee](https://www.ruby-forum.com/u/bartee)\
**Post date:** [January 2, 2009, 6:55pm UTC](https://www.ruby-forum.com/t/render-json-data-into-html-header/156771/2 "2009-01-02T18:55:32Z")

</div>

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  
:plain  
= my\_json\_data

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

Sean
