Json Serialization:Azure IOT Hub SDK - System.Text.Json

Chandra Mohan 461 Reputation points
2022-02-14T02:23:53.183+00:00

I would like to know whether 'System.Text.Json' is supported by latest Azure IOT SDK's? To my understanding, Azure IOT SDK's has 'Newtonsoft.json' as dependency and is the default serializer used for device twins.

The default JsonSerializer for Asp.net core 6.0 is 'System.Text.Json'. It will be great if the same serializer can be used only across all azure sdk dependencies. Please advise.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,140 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
209 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,443 questions
0 comments No comments
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP
    2022-02-14T08:08:26.593+00:00

    As you mentioned, the latest SDKs use Newtonsoft for JSON (de)serialising. You could post it as a feature request here, or even better, add a feature request to the GitHub repo.


0 additional answers

Sort by: Most helpful