add the language argument to compile_to_json()