< Back

Get-Myjson

Sat Jan 18, 2020 4:55 pm

NAME Get-Myjson



SYNOPSIS

Get myjson file





SYNTAX

Get-Myjson [-Id] <String> [<CommonParameters>]





DESCRIPTION

Downloads myjson file and deserialises it to an object





PARAMETERS

-Id <String>

Myjson file url/id



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Id/Url of the myjson file





OUTPUTS

myjson file deserialised to pscustomobject





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-Myjson -Id "https://api.myjson.com/bins/a1a1a1a1"













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-Myjson -Id "a1a1a1a1"















RELATED LINKS