helloworld

Hello World in Multiple Languages Extravaganza: JSON

Summary

This directory contains simple JSON representations of a “Hello, World!” message:

All files are valid JSON and can be parsed by standard tools.

Files

Inspect

With 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))

Tasks

Notes