Fixed Rest for work with JSON, XML is not accessible.