title: Is there a method in angularJS thats equal to getJSON. [Newbie alert]
body: <p>I'm newbie at javascript, angularJS and JQuery, but I have just started programming a angularJS app where i use JQuery to get a JSON from a webserver like this:</p>
  
  <pre><code>var obj = $.getJSON( "http://something.com/lol?query="+ $scope.searchString, function() {
              $scope.items = obj.responseJSON.entries;                    
          }
  </code></pre>
  
  <p>Is there a method equal to $.getJSON in angularJS? So that I don't have to import the JQuery library.</p>
  
  <p>Thanks in advance, newbie.</p>
  
  <p>This is my solution so far:</p>
  
  <pre><code>function InstantSearchController($scope, $http){
   $scope.search = function() {   
    $http.jsonp("http://something.com/lol?query="+ $scope.searchString + "?json_callback=JSON_CALLBACK").success(
                          function(data, status) {
                              console.log(data);
                          }
                  );
   }
  </code></pre>
  
  <p>but I'm getting the error msg: </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token :</p>
  </blockquote>
  
  <p>why is this? what am I doing wrong?
      }</p>