PowerShell for Windows Admins:


August 19, 2015  10:03 AM

Creating JSON from a hash table

Richard Siddaway Richard Siddaway Profile: Richard Siddaway
JSON, Powershell

A question on the forum was asking about creating a JSON structure for use with a REST API. The original has table looked like this $body = @{ auth_token = "$auth_token" items = @{ label = "server1" value = "OK" label = "server2" value = "OK" } } This fails because you can’t have...

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: