Skip to content

Dealing with Byte Arrays #30

Closed
Closed
@jeffpatton1971

Description

@jeffpatton1971

Recently hit an issue where a server no longer was returning json content as a string, tried a few things but will need to test this out.

attempted to force contenttype on get

-ContentType 'application/json'

That didn't really do anything and i'm not sure in the grand scheme it's relevant

went through several iterations but found a nice article https://stackoverflow.com/a/55345547/2258870

Decided to catch the response in an object and pass the output through string:new

[string]::new($Response.Content) |ConvertFrom-Json;

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions