0

It seems that back-slash doesn't work:

> echo "[{\"name\": \"oren\"}]" > input.json
> type .\input.json
[{\
name\: \oren\}]
OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87

1 Answers1

0

According to this link:

The PowerShell escape character is the backtick "`" character

And indeed:

> echo "[{`"name`": `"oren`"}]" > input.json
> type .\input.json
[{"name": "oren"}]

Strangely enough, this info is not (easily?) found in the official docs

OrenIshShalom
  • 5,974
  • 9
  • 37
  • 87