test if json or jsonp is needed (both work)