Serialize extra_vars as json