From the course: PowerShell: Functions for Advanced Automation

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Use JSON data in Windows PowerShell

Use JSON data in Windows PowerShell

From the course: PowerShell: Functions for Advanced Automation

Start my 1-month free trial

Use JSON data in Windows PowerShell

- [Instructor] In this video I'm going to tie together a couple of different things that have been said and shown previously. When comparing JSON to XML I pointed out that JSON strengths have been commonly applied to web applications. When talking about rest APIs I demonstrated commands that pulled JSON data from a mock social media site. If you look at the rest API information from some of the bigger players in social networking, you'll see that LinkedIn uses XML by default. If you scroll down on their page to the data format you'll see that it's in XML. However, immediately below you'll see instructions on how to port that to a JSON format. Facebook uses JSON as its default output. And while Instagram doesn't come right out and say what their data format is, if you scroll down and look at the sample envelope and metastructure, that looks a lot like JSON to me. Each of these sources has a developer site where you can register an application or apply for credentials to access their…

Contents