Use json to set the clear variable