new rest service method which produces json.