![来自 power shell 的 Json 对象](https://linux22.com/image/750914/%E6%9D%A5%E8%87%AA%20power%20shell%20%E7%9A%84%20Json%20%E5%AF%B9%E8%B1%A1.png)
我正在尝试从 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 对象