Adding safe JSON stringifier instead of hacky check for domains.