matches output from jsonp and ws