[SOLVED] Mention Newtonsoft.Json in the documentation

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ ] Bug report
  • [ ] Performance issue
  • [x] Documentation issue or request

Current behavior

This page:
https://docs.squidex.io/02-documentation/software-development-kits/.net-standard#1.-create-your-class-model
explains how to create a model, but doesn’t include the usings. When you copy paste the class in your editor, the first using suggested by IntelliSense is System.Text.Json.Serialization
With this using, the code compiles but there is a runtime exception when serializing/deserializing.
It took me a while to figure out this was the issue!

Expected behavior

The doc should state to use Newtonsoft.Json and not the other one

1 Like

Good point. I will add that asap.

1 Like

And done. Thanks for your report.

2 Likes

Am I right in saying there is no intention of moving away from Newtonsoft.Json for the Squidex.ClientLibrary in the near future? Colleagues pointed out the other day that the Conditional Property Serialization method I recently made use of is specific to that library and I want to reassure them!

You are right. The library also exists for other platforms that do not have System.Text.Json and usually the performance gain in this area is not worth it.

1 Like

This topic was automatically closed after 2 days. New replies are no longer allowed.