converting expression to json