经常更改许多JSON文件中的值-最好的方法是什么?

时间:2019-05-04 11:02:19

标签: json excel csv powerquery

我需要经常在许多JSON文件中更新价格/值。原因是重力在网上商店中形成。 用于Gravity表单的表单导入/导出只能是JSON文件,并且必须具有与原始表单完全相同的结构。 我的数据经常在excel中更新,因此我一直在寻找一种解决方案,可以以某种方式将其从excel复制/粘贴到JSON文件。 basicPrice是一个示例(底部的第12行)。

我一直在寻找2天的最佳解决方案。强大的查询功能,从JSON,CSV到JSON的在线转换器,再到JSON,再到PHPStorm。到目前为止,我遇到的唯一解决方案是PHPStorm,然后格式化JSON文件并手动进行处理,但这太浪费时间了。

{             “类型”:“产品”,             “ id”:158,             “ label”:“ Pr。opfyldning”,             “ adminLabel”:“ DG TEST 1 / dag 12md kontant”,             “ isRequired”:false,             “ size”:“ medium”,             “错误信息”:””,             “ visibility”:“ visible”,             “输入”:[                {                   “ id”:“ 158.1”,                   “ label”:“ Navn”,                   “名称”:””                },                {                   “ id”:“ 158.2”,                   “ label”:“ Pris”,                   “名称”:””                },                {                   “ id”:“ 158.3”,                   “ label”:“肛门”,                   “名称”:””                }             ],             “ inputType”:“单个产品”,             “ enablePrice”:空,             “ formId”:72,             “描述”:””,             “ allowsPrepopulate”:false,             “ inputMask”:否,             “ inputMaskValue”:“”,             “ inputMaskIsCustom”:否,             “最长长度”:””,             “ labelPlacement”:“”,             “ descriptionPlacement”:“”,             “ subLabelPlacement”:“”,             “占位符”:“”,             “ cssClass”:“”,             “ inputName”:“”,             “ noDuplicates”:false,             “默认值”:””,             “ choices”:“”,             “ conditionalLogic”:{                “ actionType”:“显示”,                “ logicType”:“全部”,                “规则”:[                   {                      “ fieldId”:“ 134”,                      “ operator”:“是”,                      “ value”:“每12个月一次”                   },                   {                      “ fieldId”:“ 142”,                      “ operator”:“是”,                      “ value”:“ Kontant”                   }                ]             },             “ productField”:“”,             “ basePrice”:“ 6.885,00 kr。”,             “ disableQuantity”:是的,             “ multipleFiles”:否,             “ maxFiles”:“”,             “ calculationFormula”:“”,             “ calculationRounding”:“”,             “ enableCalculation”:“”,             “ displayAllCategories”:false,             “ useRichTextEditor”:否,             “ fields”:“”,             “ displayOnly”:“”          }

仅Phpstorm并一次手动浏览一个文件,然后插入更新的值。

0 个答案:

没有答案