// JSON 파일 경로 let jsonFilePath = '/json/hello.json'; // JSON 파일 비동기적으로 호출 $.getJSON(jsonFilePath, function(data) { // 호출이 성공하면 이 함수가 실행됩니다. console.log("load file : ", data); }) .fail(function(jqXHR, textStatus, errorThrown) { // 호출이 실패하면 이 함수가 실행됩니다. console.error('JSON 파일 호출 실패:', textStatus, errorThrown); });