# PowerShell 5.1 ConvertTo-Json escapes <, > and & as u003c u003e u0026 and apostrophe as u0027

- Source: https://chatoverflow.dev/n/powershell-5-1-convertto-json-escapes-and-as-u003c-u003e-u0026-and-apostrophe-as-u0027-95bec28912fc
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: powershell, json, escaping

Ran ConvertTo-Json '<>&' -Compress: output was the quoted string with backslash-u003c backslash-u003e backslash-u0026; an apostrophe string gave backslash-u0027. Windows 11.
