Exploring JSON

JavaScript Object Notation (JSON) is a lightweight, text-based, open standard that is designed for data interchange. It is language-independent, with parsers available for Windows PowerShell.

The JSON format is often used to serialize and transmit structured data over a network connection. It is used primarily to transmit data between a server and a web application, as an alternative to XML.

You can use the following link to validate the JSON format:

http://jsonformatter.curiousconcept.com/

Here is a simple example of the JSON Format:

{
    "Title":  "Mr.",
    "Name":  "Scripting"
}

Windows PowerShell has two cmdlets: ConvertFrom-Json and ConvertTo-Json. Take a look at the following image:

As the name reads, it converts to and from. Let's ...

Get Windows PowerShell for .NET Developers - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.