I have a very simple json and this code works for him:
function Get-CustomHeaders() { return Get-Content -Raw -Path $JsonName | ConvertFrom-Json }
Remove comment lines from your input before the conversion:
(Get-Content $JsonName) -replace '^\s*//.*' | Out-String | ConvertFrom-Json