https://github.com/aetonsi/pwsh__jsonintegrity
{pwsh} Powershell tool to check whether a given string is valid JSON.
https://github.com/aetonsi/pwsh__jsonintegrity
json powershell pwsh
Last synced: 2 months ago
JSON representation
{pwsh} Powershell tool to check whether a given string is valid JSON.
- Host: GitHub
- URL: https://github.com/aetonsi/pwsh__jsonintegrity
- Owner: aetonsi
- License: wtfpl
- Created: 2022-09-05T08:58:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-07T11:59:28.000Z (over 3 years ago)
- Last Synced: 2026-01-20T21:54:56.359Z (5 months ago)
- Topics: json, powershell, pwsh
- Language: PowerShell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pwsh__JsonIntegrity
Powershell tool to check whether a given string is valid JSON.
# Usage
```powershell
# import module first
Import-Module ./JsonIntegrity.psm1
# use the imported function
$validJson = Get-JsonIntegrity "[1,2,3]" # True
$validJson = Get-JsonIntegrity "asdasdasd" # False
```