added clean_json config param to the sample