I have faced with strange issue in time of conversion of json to the objects array
(我在将json转换为objects数组时遇到了一个奇怪的问题)
$response = Invoke-WebRequest -Method Get -UseDefaultCredentials -Uri $url;
($ response =调用WebRequest-方法Get -UseDefaultCredentials -Uri $ url;)
$result = ConvertFrom-Json -InputObject $response ($结果= ConvertFrom-Json -InputObject $响应)
It returns empty collection (value=System.Object[]) despite the json is full of content.
(尽管json充满了内容,它仍返回空集合(value = System.Object [])。)
Could you please advise possible cause and solution of this issue.
(您能否建议此问题的可能原因和解决方案。)
PS.
(PS。)
It works fine when url contains specific Key and has issue only for the GetAll case. (当url包含特定的Key且仅在GetAll情况下有问题时,它可以正常工作。)
ask by Andreas Petrov translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…