dd logic to add json and jsonp at same time