# JSON: ConvertFrom-Json and ConvertTo-Json

JSON is the text format most apps keep their settings in and most websites send their data in, and PowerShell reads it into an object with ConvertFrom-Json, lets you change a value with a dot and an equals sign, and writes it back with ConvertTo-Json, whose -Depth says how many levels of boxes inside boxes it keeps.

![Cheat sheet for the lesson JSON: ConvertFrom-Json and ConvertTo-Json: JSON is the text format most apps keep their settings in and most websites send their data in, and PowerShell reads it into an object with ConvertFrom-Json, lets you change a value with a dot and an equals sign, and writes it…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/0957ebcd5e25456d820938c3f5d24724.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: configuration-file, convertto-json, JSON, operating-system, powershell
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-json-cheat-sheet
