RedactWire.Structured
0.4.0
dotnet add package RedactWire.Structured --version 0.4.0
NuGet\Install-Package RedactWire.Structured -Version 0.4.0
<PackageReference Include="RedactWire.Structured" Version="0.4.0" />
<PackageVersion Include="RedactWire.Structured" Version="0.4.0" />
<PackageReference Include="RedactWire.Structured" />
paket add RedactWire.Structured --version 0.4.0
#r "nuget: RedactWire.Structured, 0.4.0"
#:package RedactWire.Structured@0.4.0
#addin nuget:?package=RedactWire.Structured&version=0.4.0
#tool nuget:?package=RedactWire.Structured&version=0.4.0
RedactWire.Structured
Structured-data scanning add-on for RedactWire — detect PII inside JSON, XML and object graphs, each hit located by JSONPath, XPath, or property path.
⚠️ This is an add-on, not a standalone package. It extends the main RedactWire package — you build the detector with RedactWire's API (
PiiDetectorBuilder/Redactor) and this package adds theDetectJson/DetectXml/DetectObjectmethods on top. RedactWire is pulled in automatically as a dependency, but everything except the three scan methods lives there, so read its docs first.
Split out of the core package so plain-string detection stays free of a
System.Text.Json dependency; install this only when you need structured scanning.
dotnet add package RedactWire.Structured # brings in RedactWire automatically
using RedactWire; // PiiDetector, Redactor
using Microsoft.Extensions.DependencyInjection; // (if using DI)
var detector = PiiDetectorBuilder.CreateDefault().AddCulture(new CultureInfo("en-US")).Build();
foreach (var h in detector.DetectJson("""{"user":{"email":"a@b.com"},"ssn":"123-45-6789"}"""))
Console.WriteLine($"{h.Path}: {h.Match.Type}"); // $.user.email: Email / $.ssn: SocialSecurity
detector.DetectXml("<u email=\"a@b.com\"/>"); // -> /u/@email (XXE-safe)
detector.DetectObject(myPoco); // -> User.Contacts[0].Phone
// or via the static facade's shared detector:
Redactor.Default.DetectJson(json);
DetectJson / DetectXml / DetectObject are extension methods on PiiDetector, so they
light up automatically once this package is referenced. License: Apache-2.0.
Docs: https://github.com/adamy/RedactWire
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- RedactWire (>= 0.4.0)
- System.Text.Json (>= 10.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.4.0 | 111 | 6/26/2026 |
0.4.0 — New add-on holding RedactWire's structured scanning (JSON/XML/object), split out of core so string-only users don't pull System.Text.Json. Requires the RedactWire package (pulled in automatically). Call detector.DetectJson/DetectXml/DetectObject or Redactor.Default.DetectJson(...).