In order to include all the dependencies (dll,jsons,xml) or multiple files present inside a directory , you need to take help of heat.exe - a wix tool which harvests (WiX terminology of copying ) files from source to destination directory . A typical heat command may look like below:
heat.exe dir "C:\DirectoryneedstobeHarvested" -ke -cg WholeTree -ag -scom -sreg -dr INSTALLFOLDER -srd -out "C:\SomeFilderPath\WholeTree.wxs" fc "C:\SomeFilderPath\WholeTree.wxs" "$(ProjectDir)WholeTree.wxs" >NUL
This command will generate a file called WholeTree.wxs which in turn will get compiled when you refer this under a Feature section like below
<ComponentGroupRef Id="WholeTree" />