add language arg when calling compile_to_json()