Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 1
    Thank you for the answer, @marc_s! Just a heads up for people that may have issues with specific properties convertion - in my case I had an YouTubeVideoId that got converted to you_tube_video_id (w/ an underscore between you and tube). In this case I decorated the property with [JsonPropertyName("youtube_video_id")] so it got converted as I expected: youtube_video_id Commented Dec 15, 2023 at 18:59
  • 1
    The difference between the answers from Kaptein Babbalas and marc_s is that the Kaptein replaces the serializer ánd the serializationoptions. marc_s sets specific options. The Kaptein's method might have unexpected side effects. E.g. case sensitivity is turned on in a newed options object. It is off in the default functions configuration Commented Jan 22, 2024 at 14:46