JSON – Better than CSV?

If you need to know why, you could find articles like this guy pretty easy with a quick google search…

4 Reasons You Should Use JSON Instead of CSV

So do you really want me to rehash it here? Let’s just say – I use JSON because it’s cleaner to READ with Notepad. And yes.. I still use notepad. Every. Day.

# Output an array/object to JSON

$OutputJson = ConvertTo-Json -InputObject $OBJ_Group

$OutputJson | Out-File e:\lists\Json.txt

# Input an Json Text file:

$Input_Content = Get-Content “e:\lists\Json.txt”

#convert to an array:

$InputJsonArray = ConvertFrom-Json -InputObject $Input_Content