Returns a value from a JSON string or file.
Resolve-JsonPointer.ps1 [[-JsonPointer] <String>] [-InputObject <Object>] [-IncludePath]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Resolve-JsonPointer.ps1 [[-JsonPointer] <String>] -Path <String> [-IncludePath]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
'{a:1}' |Resolve-JsonPointer.ps1 /*
/a
Resolve-JsonPointer.ps1 /powershell.*.preset -Path ./.vscode/settings.json
/powershell.codeFormatting.preset
'{"a":1, "b": {"ZZ/ZZ": {"AD~BC": 7}}}' |Resolve-JsonPointer.ps1 /*/ZZ?ZZ/AD?BC
/b/ZZ~1ZZ/AD~0BC
'{"a":1, "b": {"ZZ/ZZ": {"AD~BC": 7}}}' |Resolve-JsonPointer.ps1 /[bc]/ZZ?ZZ
/b/ZZ~1ZZ
'{"a":1, "b": {"ZZ/ZZ": {"AD~BC": 7}}}' |ConvertFrom-Json |Resolve-JsonPointer.ps1 /?/ZZ*/*BC
/b/ZZ~1ZZ/AD~0BC
The full path name of the property to get, as a JSON Pointer, modified to support wildcards: ~0 = ~ ~1 = / ~2 = ? ~3 = * ~4 = [
Type: String
Parameter Sets: (All)
Aliases: Name
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The JSON (string or parsed object/hashtable) to get the value from.
Type: Object
Parameter Sets: InputObject
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
A JSON file to update.
Type: String
Parameter Sets: Path
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the source file path should be included in the output, if available.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.