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.

Updated

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…
Category
PowerShell
Level
Journeyman
Tags
configuration-file, convertto-json, JSON, operating-system, powershell