Adding retrieve JSON endpoint and @XmlRootElement at model class to properly parse JSON