Comments (1)
It's not possible for Jil to know all the different subclasses that descend from a class when building it's deserializers on the first invocation (consider the case where all DLLs haven't been loaded yet). We could do a very expensive check on every deserialization... but that's a bit absurd.
For cases where the type information for deserializing isn't available at the call site, Jil has the JSON.DeserializeDynamic
method. There are some tradeoffs, as dynamic deserialization is slower and the returned dynamic
type trades type safety for flexibility.
from jil.
Related Issues (20)
- Jil can't serialize this string
- Should Version 2.16 Have Been a Major Version?
- OutOfMemoryException HOT 1
- Can't edit Deserialized child Object
- Can't determine deserialized dynamic object type.
- Can I control the precision of decimals?
- Unexpected end of stream HOT 2
- Rejects valid JSON
- Deserialize crashes under .Net 5 HOT 2
- InvalidProgramException when serializing types containing JilPrimitiveWrappers
- Performance decrease when called from anonymous function
- [Deserialization] Exception: `Expected digit`
- Trying to add dll that Jil uses to the database like to CLR
- PlatformNotSupportedException HOT 1
- Using Jil with ASP.NET Core 6 HOT 1
- Class Not serialized
- Set package metadata
- Add additional TFM to eliminate dependency
- Does exist the possibility to serialize object to bytes array (as Utf8Json forexample)?
- Can not deserialize on .net 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jil.