Comments (5)
This isn't a bad idea, I'll see if I can't slip it into a future release.
from jil.
Awesome, thanks Kevin! (assuming you meant "can" instead of "can't" ;) )
from jil.
Is there a way to serialize and pass the type too? I have a collection of objects that are used as their base type, so the generic method isn't serializing any properties defined on the subclass because the type is inferred from the generic signature of JSON.Serialize().
from jil.
@dotjosh JSON.SerializeDynamic(object, Options)
probably does what you want there. There's a perf hit (since it has to inspect), but if none of your types are DLR-aware then it shouldn't be a big one.
from jil.
Thank you - yeah I saw that, didn't realize it was applicable. I'll have
to test the performance. The primary reason I'm looking at the library
(over newtonsoft) is the perf..
On Thu, Jun 25, 2015 at 9:44 PM, kevin-montrose [email protected]
wrote:
@dotjosh https://github.com/dotjosh JSON.SerializeDynamic(object,
Options) probably does what you want there. There's a perf hit (since it
has to inspect), but if none of your types are DLR-aware then it shouldn't
be a big one.—
Reply to this email directly or view it on GitHub
#60 (comment).
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.