I am trying to parse a bad json format from a remote server that is like this:
//[
{},{}
]
My code in AngularJS:
$http.get('http://www.example.com/badjson')
.success(function(data) {
console.log(data);
});
but i get Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data. I cannot get it working in Jquery with $.getJSON either. Any idea?