Author Posts

October 2, 2016 at 8:29 pm

hi!
i am getting the following Json-Response and pipe it to this Export-CliXml Result. i then use 'Get-Content' to read that file and find the 'edittoken'-line like this.

does anybody have an idea how this could be done without the workaround of making use of 'Export-CliXml'?

the problem (as far as i understand it) is that PowerShell can not handle/work with the numeric object as "$WebRequestObject.query.pages.338" fails.

KR
Guenther

October 3, 2016 at 4:23 pm

found a solution using the function "ConvertTo-HashtableFromPsCustomObject" from this blog entry:
https://blogs.msdn.microsoft.com/timid/2013/03/05/converting-pscustomobject-tofrom-hashtables/

KR
Guenther