Reading Invalid JSON with System.Text.Json

  Рет қаралды 8,374

dotnet

dotnet

Күн бұрын

Пікірлер: 14
@coffeeandloot8216
@coffeeandloot8216 11 ай бұрын
Thanks for the video, I think this makes it easier to avoid exceptions and improves reliability.
@robl39
@robl39 11 ай бұрын
It will be an uphill battle to get people off of Newtonsoft LOL
@talwald1680
@talwald1680 11 ай бұрын
Is there an option for treating single quotes as double quotes for property names, or other string values? (I have seen this in the wild and had to resort to string.Replace...)
@pesfan6385
@pesfan6385 11 ай бұрын
In a post api I send {"quantity":"xyz","name":"peter"} and the request are null , the quantity type is decimal i cannot validate with fluentValidator , some idea?
@PankajNikam
@PankajNikam 11 ай бұрын
I wonder if there are any performance impacts when turning off the strict checking.
@enriquebenedicto9429
@enriquebenedicto9429 11 ай бұрын
Given the apparent long list of possible options, it seems one would already have to know which options would be realistic candidates in a given environment. This leads me to think that an app reading the json file would be somewhat aware/knowledgeable of where the data comes from, and what format it can typically come in. One can't possibly anticipate ahead of time all the ways a json file might be wrongfully formatted. Also, are there ways to specify what the "comment" formats are? In this example, it was using c/c++ format by default, it seems. But what if semi-columns are used, for instance?
@pesfan6385
@pesfan6385 11 ай бұрын
What happen if i send string in a int value in that json ?
@foro1
@foro1 11 ай бұрын
How to force this to be default for webapis ?
@jd31068
@jd31068 11 ай бұрын
This guy James sounds a lot like that long haired bearded guy from the MAUI videos 😉
@SergioBarrionuevo
@SergioBarrionuevo Ай бұрын
yeah right! hehe
@julian_b
@julian_b 11 ай бұрын
I thought the original intention of System.Text.Json was to strictly adhere to the JSON standards?
@coffeeandloot8216
@coffeeandloot8216 11 ай бұрын
It does, the options allow for bending the rules when you need to.
@robl39
@robl39 11 ай бұрын
The intent was to create a highly performant, low memory footprint JSON serializer
Customizing borders & corners | .NET MAUI Minutes
5:05
dotnet
Рет қаралды 7 М.
Ignoring Properties when reading & writing JSON
14:42
dotnet
Рет қаралды 4,2 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
.NET Containers advancements in .NET 8 | .NET Conf 2023
25:38
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 178 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 36 М.
JSON support gets a major missing feature in .NET 7
9:53
Nick Chapsas
Рет қаралды 50 М.
Build & test resilient apps in .NET with Dev Proxy
23:16
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 133 М.
JSON in 5 minutes or less
5:12
Engineer Man
Рет қаралды 18 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН