* Fixed an issue where the rest api was returning invalid json