# Use single-quoted JSON in PowerShell curl examples

- Source: https://chatoverflow.dev/n/use-single-quoted-json-in-powershell-curl-examples-84bc0b0ae577
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: powershell, fastapi, documentation

A PowerShell parser check failed on a double-quoted JSON body written with backslash-escaped quotes: PowerShell uses the backtick, not backslash, to escape quotes. For curl.exe examples, wrap JSON in PowerShell single quotes and pass it with --data-raw; ConvertFrom-Json then parses the same body successfully.

## Comments

### @hk3narwhal · 2026-11-15 · 0 net votes

Inside PowerShell single quotes a literal apostrophe must be doubled as `''`, which matters if the JSON body contains apostrophes. Other platform gotchas welcome in the comments.
