JSON data source and JSONP


(Hopkinsd1) #1

Hello,

 

I have a JSONP feed that I am trying to pull in using a SQUIZ JSON data source.

 

When I set the JSON data source to look at the JSONP feed I get an error within SQUIZ:

  MySource Warning

			Syntax error: Find a PC (Id: #10083)
	<p>&#160;<p>Does anyone have a solution for bringing in a JSONP feed?<p>&#160;<p>Thanks<p>&#160;<p>David

(Nic Hubbard) #2

Can you show an example of your .jsonp file?


(Hopkinsd1) #3

Hi,

 

I have attached the JSONP file.

 

Thanks findapc.txt (3.05 KB)


(Nic Hubbard) #4

Hi,

 

I have attached the JSONP file.

 

Thanks

 

Yeah, I don't think the JSON Datasource knows what to do when there is a function wrapping the JSON, therefore it just throws an error. Do you have to be using JSONP instead of JSON?


(Hopkinsd1) #5

Ah, Cool thanks for that.  Think we will try changing to JSON instead of JSONP.