Will RavenDB use System.Text.Json in a future release?

87 views
Skip to first unread message

Ivan Montilla

unread,
Jan 13, 2020, 9:30:16 AM1/13/20
to RavenDB - 2nd generation document database
Instead of Newtonsoft

Oren Eini (Ayende Rahien)

unread,
Jan 13, 2020, 10:22:04 AM1/13/20
to ravendb
You can already change the serializer we use.

Conventions.DeserializeEntityFromBlittable
Conventions.TrySerializeEntityToJsonStream

On Mon, Jan 13, 2020 at 4:30 PM Ivan Montilla <goo...@ivanmontilla.es> wrote:
Instead of Newtonsoft

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/ffe28d59-7fbd-43fd-9449-4d8e9a160710%40googlegroups.com.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net

marcus

unread,
Jan 13, 2020, 10:41:01 AM1/13/20
to RavenDB - 2nd generation document database
@Oren, have you done any test using System.Text.Json? In that case, does it work well?


Den måndag 13 januari 2020 kl. 16:22:04 UTC+1 skrev Oren Eini:
You can already change the serializer we use.

Conventions.DeserializeEntityFromBlittable
Conventions.TrySerializeEntityToJsonStream

On Mon, Jan 13, 2020 at 4:30 PM Ivan Montilla <goo...@ivanmontilla.es> wrote:
Instead of Newtonsoft

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rav...@googlegroups.com.

Oren Eini (Ayende Rahien)

unread,
Jan 14, 2020, 4:30:58 AM1/14/20
to ravendb
We have tested other json serializers, not System.Text.Json

To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ravendb/c2301f3a-a658-4f31-bfb2-ee213b0332dc%40googlegroups.com.

Arian

unread,
Jul 22, 2020, 5:18:29 AM7/22/20
to RavenDB - 2nd generation document database
Hi Oren,
Is there any plan in your roadmap to change the default serializer to System.Text.Json?  System.Text.Json performs better than NewtonsoftJson and since Ravendb cares about performance this may have an improvement for it.
Be aware there may be some missing features in System.Text.Json compare to NewtonsoftJson.

Oren Eini (Ayende Rahien)

unread,
Jul 22, 2020, 6:37:59 AM7/22/20
to ravendb
That is a fairly huge undertaking, and it may have an impact on backward compatibility. 
Note that RavenDB internally use our own parser, we use json.net mostly for your entities serialization, and we have the hooks in place to replace that

The information in this email is confidential, and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized and therefore prohibited. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.

--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.


--
Oren Eini
CEO   /   Hibernating Rhinos LTD
Skype:  ayenderahien
Support:  sup...@ravendb.net
  
Reply all
Reply to author
Forward
0 new messages