C#C
C#3y ago
Doombox

❔ ✅ System.Text.Json paths

Does STJ support paths in some way? In NSJ I would use a ContractResolver and a custom attribute to handle this
Essentially I want to access this (pointlessly) nested property
Time: {
  "time": "1:27.452"
},

in NSJ I could define this attribute[JsonPathProperty("Time.time")] and use a ContractResolver to drag the value back up, preventing needless object bloat.
Was this page helpful?