const fs=require('fs'); const s=fs.readFileSync('methods/system.json','utf8'); function isEscaped(str, idx){let cnt=0; let j=idx-1; while(j>=0 && str[j]=='\\'){cnt++; j--; } return cnt%2===1;} let ph=s.indexOf('"headers"'); let posOpen=s.indexOf('[',ph); let depth=0; let inStr=false; let posClose=-1; for(let i=posOpen;i