JSON and JSONP backwards compatibility