[웹한글v1,v2] InsertFile 액션 지원 포맷 문의

안녕하세요.
페이지 레이아웃을 유지하고자 InsertFile 액션을 사용하여
JSON 포맷의 문서를 삽입하려고 시도하였으나,
hwpAction.Execute의 반환값이 false로 확인되어 문의드립니다.

const hwpAction = HwpCtrl.CreateAction('InsertFile');

if (hwpAction == null) {
  throw new Error('InsertFile 액션을 생성하지 못하였습니다.');
}

const hwpSet = hwpAction.CreateSet();
hwpAction.GetDefault(hwpSet);
hwpSet.SetItem('FileName', 'HWPJSON 포맷 파일을 다운로드 받을 수 있는 서버 URL');
hwpSet.SetItem('FileFormat', 'JSON');
hwpSet.SetItem('FileArg', '');
hwpSet.SetItem('KeepSection', 1);
hwpSet.SetItem('KeepStyle', 1);
hwpSet.SetItem('KeepCharshape', 1);
hwpSet.SetItem('KeepParashape', 1);

// 이 시점에 result가 false임.
const result = hwpAction.Execute(
      hwpSet,
      (action, paramSet, _result, callbackUserData) => {
        console.info(_result ? '성공' :  '실패');
      },
     {}
);

if (result) {
  throw new Error('실패');
}

혹시 InsertFile 액션에서는 JSON 포맷을 지원하지 않는 것인지요?
지원하는 포맷 종류를 안내해주시면 감사하겠습니다.

감사합니다.

안녕하세요.

JSON 형식은 url 형식으로는 지원하지 않습니다.

다운받은 json 문자열 형식으로 API 요청하시면 동작 가능합니다.

감사합니다.

안내해 주신 방식으로 잘 동작합니다! 감사합니다!