This directory contains simple JSON representations of a “Hello, World!” message:
HelloWorld.json: minimal JSON payloadHelloWorld2.json: extended JSON payload with metadataHelloWorld-base64.json: JSON payload containing a base64-encoded messageAll files are valid JSON and can be parsed by standard tools.
HelloWorld.jsonHelloWorld2.jsonHelloWorld-base64.jsonWith PowerShell:
Get-Content .\json\HelloWorld.json | ConvertFrom-Json
(Get-Content .\json\HelloWorld.json | ConvertFrom-Json).message
(Get-Content .\json\HelloWorld2.json | ConvertFrom-Json).greeting.message
Decode the base64 variant:
$encoded = (Get-Content .\json\HelloWorld-base64.json | ConvertFrom-Json).encoded_message
[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($encoded))