Загрузка...

Convert a C# Object to JSON Using System.Text.JSON and Newtonsoft.JSON with Different Options

►► Master Web API development Best Practices: https://bit.ly/3TnqoFQ
►► Build great web apps in Blazor WebAssembly: https://bit.ly/437g87T
►► Support us on Patreon and get the source code: https://www.patreon.com/CodeMaze

In this video, I’m gonna show you how to convert a C# object into a JSON string and also, how to control different aspects of the serialization process. You’ll see how to generate pretty JSON strings, ignore properties and null values, change the naming convention, control DateTime formatting, and also how to avoid circular reference while doing serialization. So as you can see a lot of different features that we as developers use every day. For this, I will use both the System.Text.JSON and Newtonsoft JSON libraries.

FOLLOW US ON SOCIAL MEDIA!
►► https://www.linkedin.com/in/marinko-spasojevic/
►► https://twitter.com/CodeMazeBlog
►► https://www.facebook.com/CodeMazeBlog

Видео Convert a C# Object to JSON Using System.Text.JSON and Newtonsoft.JSON with Different Options канала Code Maze
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять