ServeJSON method more efficient, bug with serving content type