added json and jsonp method for response