Coder Social home page Coder Social logo

Comments (5)

kevin-montrose avatar kevin-montrose commented on August 19, 2024

This isn't a bad idea, I'll see if I can't slip it into a future release.

from jil.

joergbattermann avatar joergbattermann commented on August 19, 2024

Awesome, thanks Kevin! (assuming you meant "can" instead of "can't" ;) )

from jil.

dotjosh avatar dotjosh commented on August 19, 2024

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.

kevin-montrose avatar kevin-montrose commented on August 19, 2024

@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.

dotjosh avatar dotjosh commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.