-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jil support #33
Comments
Hi @oliverjanik , Thanks very much for your suggestion. I think you have a good idea. It would be a good thing to allow support for alternative JSON implementations. Currently, the Java driver is exploring something like this too: rethinkdb/rethinkdb#5128 However, currently the driver relies on some Newtonsoft feature-magic (objects like EDIT: Requires #77 to be implemented first. Updated Benchmarks (thanks to @marshall007): |
It's good to hear you're open to suggestions. Newtonsoft is one of the slowest json serializers around and has some crazy baggage (e.g. JamesNK/Newtonsoft.Json#525) |
Hey Oliver, yeah. I totally understand. I've heard some arguments on both sides regarding Newtonsoft. Microsoft blessed Newtonsoft as the default JSON ser/des in ASP.NET MVC and it was one reason I picked it as the default here. Currently, I don't have any immediate needs for an alternative JSON implementation right now, so this is a bit lower priority issue for me. However, I'd gladly help with guidance and accept a PR if you or anyone want to take a stab at it. Side note: It would be interesting to see an updated version of the benchmarks. Looks like the benchmarks were ran against |
I think they are always working on improving performance of it http://james.newtonking.com/archive/2015/12/20/json-net-8-0-release-1-allocations-and-bug-fixes |
And it's not too bad if you look at some benchmarks (which already look out of date) |
It's less the speed, more the wild and inconsistent API and true WTF moments (like the one I linked to) for me. Call me sceptical but a library that modifies! my timestamp by just loading json as JObject is an absolute no-go. Moreover there was zero discussion and the issue closed as won'tfix. |
Would it make sense to to swap out Json.NET for Jil or provide alternative json implementation?
https://github.com/kevin-montrose/Jil
The text was updated successfully, but these errors were encountered: