< Back

Test-Json

Fri Jan 10, 2020 9:09 pm

NAME Test-Json



SYNOPSIS

Validate json is valid





SYNTAX

Test-Json [-jsonToTest] <PSObject> [<CommonParameters>]





DESCRIPTION

Checks that the keys for the json are as expected.





PARAMETERS

-jsonToTest <PSObject>

json object.



Required? true

Position? 1

Default value

Accept pipeline input? false

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



OUTPUTS



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



PS C:\\>$ssisJson = Import-Json -path "C:\\Users\\SQLTraining\\Documents\\iscPublish.json"















RELATED LINKS