I am trying to create JSON object from power shell
$var6 = '{
"key5": "value5",
"key4": [
"$Version"
],
"key1": "value1",
"key3": "value3"
"key6": {
"$Version2"
},
"key2": "value2"
}'
I am unable to include these two strings in the JSON
Version: "value1","value2","value3"
Version2: "value3","key1": "value1", "key2": "value2"
how to format by using string itself for the required JSON object