Add valid JSON header to API object responses