title: Handlebars parse error on #each
body: <p>I'm returning the following JSON object </p>
  
  <pre><code>{"status":"success",
  "valmessage":"Your message has been sent successfully.",
  "postcontent":{
      "post_author":1,
      "post_recipient":"1",
      "post_title":"handle test 2",
      "post_type":"wp_inbox_msg",
      "post_content":"&lt;p&gt;giving it another go.&lt;\/p&gt;\n"},
  "postmeta":{
      "postid":410,
      "postdate":"Monday, March 17th, 2014",
      "author":"admin"},"replies":null,
      "Formerrors":[]
  }
  </code></pre>
  
  <p>and I'm getting the following error inside my handlebars template : </p>
  
  <pre><code>Uncaught Error: Parse error on line 23:
  ...replies}}                    {{ #each replies }
  ----------------------^
  Expecting 'ID', 'DATA', got 'INVALID' 
  </code></pre>
  
  <p>inside my tempalte I'm doing the following : </p>
  
  <pre><code>        {{#if replies}}
                  {{ #each replies }}
                      &lt;li&gt;
                          &lt;figure class="reply-author-img"&gt;
                              &lt;img alt="" src="{{ avatar }}" height="96" width="96"&gt;
                          &lt;/figure&gt;
                          &lt;div class="replycontentwrap"&gt;
                              &lt;div class="reply-from"&gt;
                                  &lt;p class="reply-author"&gt;
                                      &lt;strong&gt;{{ fullname }}&lt;/strong&gt;
                                      &lt;span&gt;{{ nickname }}&lt;/span&gt;
                                  &lt;/p&gt;
                                  &lt;span class="replydate"&gt;{{ reply_date }}&lt;/span&gt;
                              &lt;/div&gt;
                              &lt;div class="reply-content"&gt;{{ reply_content }}&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/li&gt;
                  {{ /each }}
              {{/if}}
  </code></pre>
  
  <p>Replies is currently Null but it should be returning a set of objects when there are replies to the message, How would be the best way to 1) get this working and 2) approach this kind of data structure with handlebars.js ?</p>