Page 2 of 2

displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 4:54 pm
by mfratto

Thanks for your help Max.


displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 5:49 pm
by mfratto

Did you guys change the "Test Connection" function? The RESTservice you fixed for me yesterday is returning data when I test, but when I try to populate the response structure, I get "Failure. Incorrect response data. Must be valid JSON formatted response". It was working last night.


displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 7:10 pm
by maxkatz

No, nothing was changed. Are you still sharing the project with a href="mailto:support@gotiggr.com" rel="nofollow"support@gotiggr.com/a? If yes, I'll check it out.


displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 7:52 pm
by mfratto

yes I am.

I don't think I changed anything.


displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 9:50 pm
by maxkatz

I just did tested the service inside Tiggr and the service worked fine. Can you try again?


displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 10:17 pm
by mfratto

The REST connection tests fine, but when I try to "populate the response structure" within the asset "BroadbandProviders", that is when I get the error "Failure. Incorrect response data. Must be valid JSON formatted response".

Also, when I do a Test-Browser it works properly.


displaying returned data from json vs jsonp

Posted: Wed Aug 24, 2011 11:04 pm
by maxkatz

To use 'Populate Response Structure', the response has to be a valid JSON format. When using jsonp, it adds a callback function to the output which is not a valid format (when running, jQuery knows how to process it). So, to use this feature, set format=json, run and populate. Then change back to jsonp. You can also paste a sample response and generate it that way: http://help.gotiggr.com/documentation...