© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
11 replies
Doombox

❔ ✅ System.Text.Json paths

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

in NSJ I could define this attribute
[JsonPathProperty("Time.time")]
[JsonPathProperty("Time.time")]
and use a
ContractResolver
ContractResolver
to drag the value back up, preventing needless object bloat.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

System.Text.Json Source Generators
C#CC# / help
3y ago
✅ System.Text.Json serialization problem
C#CC# / help
4y ago
Create JSON objects from System.Text.Json
C#CC# / help
2y ago