Thanks for the video, I think this makes it easier to avoid exceptions and improves reliability.
@robl39 Жыл бұрын
It will be an uphill battle to get people off of Newtonsoft LOL
@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 Жыл бұрын
I wonder if there are any performance impacts when turning off the strict checking.
@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 Жыл бұрын
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 Жыл бұрын
What happen if i send string in a int value in that json ?
@foro1 Жыл бұрын
How to force this to be default for webapis ?
@jd31068 Жыл бұрын
This guy James sounds a lot like that long haired bearded guy from the MAUI videos 😉
@SergioBarrionuevo2 ай бұрын
yeah right! hehe
@julian_b Жыл бұрын
I thought the original intention of System.Text.Json was to strictly adhere to the JSON standards?
@coffeeandloot8216 Жыл бұрын
It does, the options allow for bending the rules when you need to.
@robl39 Жыл бұрын
The intent was to create a highly performant, low memory footprint JSON serializer