Clean result so it's safe to show as json