title: how to get json response form parse.com using query.find(); using javascript in web app?
body: <p>i'm using parse.com for the first time and searching for the way to get json response using javascript api. actually, i'm using handlebars as template engine and trying to get json response form parse.com so i can easily pass it to handlebars template. currently, i'm getting object response which needs to do like result.get("title"). i searched the parse.com javascript guide and documentation but couldn't find the way to do this. i'm want to get all the feeds records from parse.com class as json. is there any way to do this any soution?? </p>
  
  <p>here's handlebars template script:: </p>
  
  <pre><code>&lt;script id="post-template" type="text/x-handlebars-template"&gt;
      {{#each feeds}}
          &lt;div class="post" style="padding-top: 5px; width: 307px; margin: 0 auto;" &gt;
              &lt;div style="background: rgba(255,255,255, 0.5); text-align: left;"&gt;
                  &lt;img src="{{post-img}}" alt="image"/&gt;
                  &lt;p&gt;{{post-mes}}&lt;/p&gt;
                  &lt;p style="position: relative;"&gt;
                      &lt;img src="{{post-by-img}}" alt="image" /&gt;&lt;label&gt;  By @{{post-by}}&lt;/label&gt;
                      &lt;label class="ago" style="vertical-align: top; position: absolute; right: 10px; top: 18px; height: 20px;"&gt;{{post-dt}}&lt;/label&gt;
                  &lt;/p&gt;
              &lt;/div&gt;
              &lt;div&gt;
                  &lt;a href="javascript: alert('Like')" class="button like" &gt;Like&lt;/a&gt;
                  &lt;a href="javascript: alert('Comment')" class="button comment" &gt;Comment&lt;/a&gt;
                  &lt;a href="javascript: alert('Share')" class="button share" &gt;Share&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          {{/each}}
      &lt;/script&gt;
  </code></pre>
  
  <p>sample json i'm using to test template:: </p>
  
  <pre><code>feeds:[
      {
      'post-img': 'assets/images/photo1.png',
      'post-mes': 'Before the party, with @Marie',
      'post-by':  'Naza',
      'post-by-img':'assets/images/by.jpg',
      'post-dt':  '5 min'
      },
      {
      'post-img': 'assets/images/photo1.png',
      'post-mes': 'Before the party, with @Marie',
      'post-by':  'Naza',
      'post-by-img':'assets/images/by.jpg',
      'post-dt':  '10 min'
      },
      {
      'post-img': 'assets/images/photo1.png',
      'post-mes': 'Before the party, with @Marie',
      'post-by':  'Naza',
      'post-by-img':'assets/images/by.jpg',
      'post-dt':  '15 min'
      }
  ]
  </code></pre>
  
  <p>and parse.com script:: </p>
  
  <pre><code>var feedsObject = Parse.Object.extend("feeds");
  var query = new Parse.Query(feedsObject);
  
          query.find({ ... });
  </code></pre>
  
  <p>i like to get it as following:: </p>
  
  <pre><code>query.find({
      success: function(feeds){
          //load home page template
          var source = $('#post-template').html();
          var template = Handlebars.compile(source);
          var html = template(feeds);  // here's example with some details [link](http://screencast.com/t/XvPFuafRuIW)
          $('#home .content').append(html);
  
      },
      error: function(object, error){
          console.log(error);
      }
  });
  </code></pre>
  
  <p>thanks in advance!!!</p>