Im using powershell and Im trying to convert this to a JSON but the problem is a need to double all the slashes. So the `\` need to be turned into `\\` and `\\` needs to be replaced by `\\\\` in the output. Im using powershell using the following script:

```
$array = @()
echo "{"; echo '"data":['; (get-counter "\Processor(*)\% Idle Time").CounterSamples.Path | %{ $array += '{ "{#CPUID}":"'+ $_.TrimStart("$LowerCaseComputerName") }
for($i = 0; $i -lt $array.Length - 1; $i++){ $array[$i] + '"},' }
$array[$array.Length - 1] + '"}'
echo "]" ; echo "}";

```

and the output im getting is right except the slashes need to be doubled: 

```
{  
"data":[  
{ "{#CPUID}":"\\aaronmartinez\processor(0)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(1)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(2)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(3)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(4)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(5)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(6)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(7)\% idle time"},  
{ "{#CPUID}":"\\aaronmartinez\processor(_total)\% idle time"}  
]  
}

```