title: How to JSON.parse data in a Meteor template?
body: <p>Here is my scenario, the first project with <a href="http://en.wikipedia.org/wiki/Meteor_%28platform%29" rel="nofollow">Meteor</a>: I have JSON-stringified data embedded in my MongoDB documents, as you can see in the MESSAGE key below:</p>
  
  <pre><code>{ "DATE" : "Jan 24 23:28:14",
    "MESSAGE" : **"{\"status_code\":200,\"uri\":\"172.16.156.143/content/dynamic\",\"tprocess\":3}"**,
    "_id" : ObjectId("5101c3992a1624e726000014") }
  </code></pre>
  
  <p>In Meteor, my client template code looks like the following basic pattern:</p>
  
  <pre><code>Template.log.logEntry = function () {
      return Messages.find({});
  };
  </code></pre>
  
  <p>... Which works OK, but it'll obviously render the following template...</p>
  
  <pre><code>&lt;template name="log"&gt;
      &lt;h1&gt;Log Entries Are:&lt;/h1&gt;
          {{#each logEntry}}
              &lt;div&gt; : {{MESSAGE}} &lt;/div&gt;
          {{/each}}
  &lt;/template&gt;
  </code></pre>
  
  <p>... With a non-parsed, literal string in the browser, for example,</p>
  
  <pre><code>{"status_code":200,"uri":"172.16.156.143/static/style.css","tprocess":2}
  </code></pre>
  
  <p>I'd love to JSON.parse() this string and do more interesting things, but I'm not sure how best to do it from the isClient context in my Meteor project's JavaScript file.</p>