© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
37 replies
Allan

Serialize a JsonDocument/JsonElement with STJ

I have a class with an
object
object
property. When deserializing something into this class, it deserializes it as a JsonElement. When trying to serialize it back to raw JSON, it will serialize the actual properties of
JsonElement
JsonElement
or
JsonDocument
JsonDocument
... Any idea?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ EF Core Sql Server JsonDocument
C#CC# / help
4y ago
✅ STJ cannot deserialize record struct with TimeOnly
C#CC# / help
3y ago
✅ [Challenge / Help] Sanitizing C# before serialization with STJ:
C#CC# / help
9mo ago
✅ deserializing records with STJ results in default values
C#CC# / help
2y ago