title: Angular Array to String
body: <p>I was wondering how I could convert something like:</p>
  
  <pre><code>$scope.foo = [
                 {name: "foo1", information : "bar1" },
                 {name: "foo2", information : "bar2" }
               ]
  </code></pre>
  
  <p>into a JSON string? I searched Stack Overflow earlier for this question and was advised to use <code>angular.toJson(obj, pretty)</code> which I also researched on their website, but I wasn't able to successfully do it.</p>