This function is part of the OZOStrings PowerShell Module.
Converts a JSON string to a file.
Convert-OZOJsonStringToFile
-JsonString <String>
-Path <String>
| Parameter | Description |
|---|---|
JsonString |
The JSON string to convert. |
Path |
The path for the output JSON file. |
Convert-OZOJsonStringtoFile -Path "C:\Temp\example.json" -JsonString '[{"Name":"Tom","EmployeeID":10},{"Name":"Jerry","EmployeeID":20}]'