Reading Invalid JSON with System.Text.Json

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

dotnet

dotnet

Күн бұрын

Пікірлер: 14
@coffeeandloot8216
@coffeeandloot8216 Жыл бұрын
Thanks for the video, I think this makes it easier to avoid exceptions and improves reliability.
@robl39
@robl39 Жыл бұрын
It will be an uphill battle to get people off of Newtonsoft LOL
@talwald1680
@talwald1680 Жыл бұрын
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...)
@PankajNikam
@PankajNikam Жыл бұрын
I wonder if there are any performance impacts when turning off the strict checking.
@enriquebenedicto9429
@enriquebenedicto9429 Жыл бұрын
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 Жыл бұрын
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?
@pesfan6385
@pesfan6385 Жыл бұрын
What happen if i send string in a int value in that json ?
@foro1
@foro1 Жыл бұрын
How to force this to be default for webapis ?
@jd31068
@jd31068 Жыл бұрын
This guy James sounds a lot like that long haired bearded guy from the MAUI videos 😉
@SergioBarrionuevo
@SergioBarrionuevo 2 ай бұрын
yeah right! hehe
@julian_b
@julian_b Жыл бұрын
I thought the original intention of System.Text.Json was to strictly adhere to the JSON standards?
@coffeeandloot8216
@coffeeandloot8216 Жыл бұрын
It does, the options allow for bending the rules when you need to.
@robl39
@robl39 Жыл бұрын
The intent was to create a highly performant, low memory footprint JSON serializer
Customizing borders & corners | .NET MAUI Minutes
5:05
dotnet
Рет қаралды 8 М.
Ignoring Properties when reading & writing JSON
14:42
dotnet
Рет қаралды 4,3 М.
Counter-Strike 2 - Новый кс. Cтарый я
13:10
Marmok
Рет қаралды 2,8 МЛН
The Right Way To Return API Errors in .NET
10:40
Nick Chapsas
Рет қаралды 75 М.
JSON in 5 minutes or less
5:12
Engineer Man
Рет қаралды 18 М.
.NET Containers advancements in .NET 8 | .NET Conf 2023
25:38
JSON support gets a major missing feature in .NET 7
9:53
Nick Chapsas
Рет қаралды 50 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 342 М.
lazy.nvim explained
14:17
TJ DeVries
Рет қаралды 34 М.