title: SyntaxError: Unexpected token e in JSON at position 1
body: <p>What's wrong with below code? I keep getting following error.
  The response from ajax is plain text, for instance "Hello world". Does $http.get() expects json response?</p>
  
  <blockquote>
    <p>angular.js:13550 SyntaxError: Unexpected token t in JSON at position 1
        at Object.parse (native)
        at uc (<a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js:17:36" rel="nofollow">https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js:17:36</a>)
        at ac (<a href="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js:91:229" rel="nofollow">https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js:91:229</a>)</p>
  </blockquote>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;
  
  
  &lt;link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc2/angular-material.min.css"&gt;
  
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://code.jquery.com/jquery-1.12.3.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-animate.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-aria.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular-messages.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/angular_material/1.1.0-rc2/angular-material.min.js"&gt;&lt;/script&gt;
  
  
  
  
  &lt;script&gt;
      var resourceApp = angular.module("resourceApp", [ "ngMaterial" ])
              .controller('resourceController', function resourceController($scope, $http) {
                  $scope.processForm = function() {
                      $http.get("test")
                          .then(function(response) {
                              console.log(response.data);
  
                          });
                  };
              });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-app="resourceApp" ng-controller="resourceController"&gt;
  
      &lt;button ng-click="processForm()"&gt;Submit&lt;/button&gt;
      &lt;pre&gt;{{response}}&lt;/pre&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>