© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ EF Core Sql Server JsonDocument
C
C# / help
4y ago
✅ STJ cannot deserialize record struct with TimeOnly
C
C# / help
3y ago
✅ [Challenge / Help] Sanitizing C# before serialization with STJ:
C
C# / help
9mo ago
✅ deserializing records with STJ results in default values
C
C# / help
2y ago