Output the correct JSON content type on APIs