我正在尝试从 power shell 创建 JSON 对象
$var6 = '{
"key5": "value5",
"key4": [
"$Version"
],
"key1": "value1",
"key3": "value3"
"key6": {
"$Version2"
},
"key2": "value2"
}'
我无法在 JSON 中包含这两个字符串
Version: "value1","value2","value3"
Version2: "value3","key1": "value1", "key2": "value2"
如何使用字符串本身来格式化所需的 JSON 对象