Moves the JSON parsing to a dedicated private function, and strips comments if run in Windows Powershell as it cannot handle single-line comments.
This is required because the new 0.5 default profile inserts single line "//" comments, and it causes get-msterminalprofile to error out if run on Windows Powershell 5.1
Moves the JSON parsing to a dedicated private function, and strips comments if run in Windows Powershell as it cannot handle single-line comments.
This is required because the new 0.5 default profile inserts single line "//" comments, and it causes get-msterminalprofile to error out if run on Windows Powershell 5.1