PowerShell Create / Read json file

#PowerShell Create / Read json file# set format by [ordered] and out put to c:\test\jsonFile.json ``` $jsonFile = [ordered]@{ Title = "" BookName = "" BookNumber = "" } $jsonFile | ConvertTo-Json | Out-File C:\Test\jsonFile.json ``` read data from c:\test\jsonFile.json ``` $readJson = Get-Content C:\Test\jsonFile.json $readJson | ConvertFrom-Json $readJson.Title $readJson.BookName $readJson.BookNumber ```

留言

這個網誌中的熱門文章

Easy Triangle Calculator

Powershell transfert UPS Worldship address book to csv file for UPS web import

Swift Sprite Kit easy to create bullet