Adding parameter to distinguish between xml and json. Default format: xml