I have been searching and cannot seem to find a remedy. I have a url that has solely text in this format:
[ { 'string' : int } ]
but no {} around it. I am having a hard time using $http to read it in because it is incomplete and returns blanks when .get or .jsonp is used. Because it is just a list and not a JSON I am having a hard time reading it in. Is there some methodology for reading just a list in?
I have an empty JSON with this:
{'locations': //array I want to read in goes here}
I was trying to read in the text of the site and then convert it to an array after the fact. If so how do I go about that.
{'locations':[{'city':'name','id':idNum}]}
however to create that I need to pull what is just the text for the array I stated before and insert it into the JSON I just wrote – Peter Jun 20 '16 at 20:21