added rest client and json parsing based on jsonp