I've done PHP and was able to get JSON format to display nicely using 

```
<pre></pre>

```

Now I'm trying to figure out how would you apply something similar with Ruby on Rails?

In my views document, I have this:

```
<%= @recent_media_items.to_json %>

```