我有一个低于架构的数据框
@Echo Off
Set "filelocn=C:\Users\Jack\Desktop\Files"
Set "progName="
For %%A In ("%filelocn%\*.exe") Do (SetLocal EnableDelayedExpansion
For %%B In (%%~nA) Do If Not Defined progName (Set "progName=%%B"
) Else Set "fileVer=%%B"
verpatch "%%A" /s desc !progName! /s comment !progName! /pv !fileVer!
EndLocal)
我需要将匹配列转换为json格式,但有困难的是迭代struct元素。
尝试编写一个udf将其转换为json,但无法处理ArrayElement。有人可以建议我这样做。
|-- matches: array (nullable = true)
| |-- element: struct (containsNull = true)
| | |-- influencer: string (nullable = true)
| | |-- frequency: long (nullable = true)
| | |-- relevance: double (nullable = true)