Тёмный

How to Parse JSON Data in C# - Coding Gems 

ParametricCamp
Подписаться 21 тыс.
Просмотров 36 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@linusfahlander2449
@linusfahlander2449 7 месяцев назад
Hours spent searching for good tutorials and i finaly find this channel. Amazing video!
@tjlaser99
@tjlaser99 11 месяцев назад
Never seen anyone so good at explaining!
@danpurdy32
@danpurdy32 Год назад
fantastic! clear, concise, and extremely helpful. Thank you!
@justfeeldbyrne2791
@justfeeldbyrne2791 7 месяцев назад
Thank you for this video, this really helped me. I'm just starting out in C# and I'm sure what I was trying to do could be done a lot better, but this was the easiest for me to understand!
@BF0001
@BF0001 5 месяцев назад
FANTASTIC. Very well done and explained so clearly. 10/10
@seanrendall5495
@seanrendall5495 4 месяца назад
Super helpful. All I wish this included was how to get just a portion of the JSON file as a string.
@claudio1983
@claudio1983 2 дня назад
First of all: fantastic gem! Subscribed to the channel! Then, the question (maybe it's already answered in another video, so in the case could you point it out?): I'm playing around with json and encountered a problem. In short: I have a json like this stored in a database table {"fields":[{"field1":"value1"},{"field2":"value2"},etc.etc.]}, where the name and number of fields could change between rows. So i could have the field2 but not the field1, or field34, and maybe field20 repeated 2 or more times. The question is: how should look a class representing this kind of data? I tested many ways (list of keyvaluepair for example, or list of another class defining the single field-value couple) but always get some trouble while deserializing and also while querying with tsql on sql server (json_value, json_query, etc. don't seems to support for iteration on the elements of the array...). So I'm a bit stuck on that... could you give me some advise or give any direction to look to? Thanks in advance for any suggestion and again: amazing video! Thank you for that!
@HaploBartow
@HaploBartow 7 месяцев назад
This is a great video and very clear, but I would like to see how you handle this case but with multiple strings of the same format you've shown here. Do you have to create multiple lists? Or can you do it with a list of lists (e.g. nested)?
@mikelammi3088
@mikelammi3088 3 месяца назад
Thanks for your content! Clear and concise 👏
@StephenBeale
@StephenBeale Месяц назад
Very useful, thanks - the only thing I would add is that I had access denied when trying to read in from a file (even when running VS 2022 as Administrator). Any tips on sorting that would be great (I'm on a work computer so it's hard to know what else might be going on in the background)
@gameofjoy3561
@gameofjoy3561 3 месяца назад
Very nice video. You made it so easy. Thank you so much. 👍
@idegarceus5895
@idegarceus5895 Месяц назад
Thank you! That was very helpful.
@markus72wi
@markus72wi Год назад
Thanks for this clear tutorial , helped a lot
@alexsnowblind
@alexsnowblind 7 месяцев назад
Thank you! Well explained!
@thomaswoods1365
@thomaswoods1365 2 месяца назад
This is awesome. Thank you! Thank you!
@adyman0010
@adyman0010 Месяц назад
It would be also nice if you could show us how to write data into the .json file :)
@ahmedadel2487
@ahmedadel2487 11 месяцев назад
FANTASTIC VIDEO
@Za3DoRzX
@Za3DoRzX 10 месяцев назад
Great explanation.
@EmranSalah
@EmranSalah Год назад
Very helpful. Thank you very much
@peremos7781
@peremos7781 6 месяцев назад
How to deserialize this Json, what to do with the word "producto" before the properties? { "producto": { "iDpRODUCTO": 6, "codigoBarra": 54323, "nombre": "cera", "marca": "avon", "categoria": "belleza", "precio": 3400 } }
@Dismanameboi
@Dismanameboi 25 дней назад
Amazing channel
@netrunner1987
@netrunner1987 2 месяца назад
Ran into this early morning, helped me a bunch. Kinda stuck now, what do you do when you have "location": null? When I deserialize and try to read root.data.location, I get a System.NullReferenceException: 'Object reference not set to an instance of an object.' Document_Parser.readjson.Data.dateOfBirth.get returned null. Thanks
@mindblower113
@mindblower113 11 месяцев назад
Nice video man thanks.
@gametech7725
@gametech7725 Год назад
Amazing. How to enable Auto complete of visual studio? Can you guide please?
@tuomaslehtonen1707
@tuomaslehtonen1707 Год назад
It is called IntelliSense. Should be under Tools -> Options -> Text Editor -> C# -> IntelliSense.
@gametech7725
@gametech7725 Год назад
@@tuomaslehtonen1707 i cant find it under Tools. I have one in Visual studio -> Preference -> Text editor -> IntelliSense. It’s enable but not working like shown in your video. Didn’t saw anything related to C# in above path although I’m working with Unity & C#. Maybe a module is missing? 🤔
@nearissad3127
@nearissad3127 10 месяцев назад
oh my god thank you
@athanasmb
@athanasmb Год назад
thansk!!
@wirelessmistress608
@wirelessmistress608 12 дней назад
My dear Hobbyist programmer ... you should really put your DTOs in a common or Shared Project and not straight in your Console Application So you can have it referenced by other server or clients without having to export your console to your clients or servers you talk to and hence avoid circular references of your executable ... It's lovelty to see you just realized you could seriallize and deserialize Json .. well it;s not just Json .. it's Xml it's Objects and basically anything you can tuirn to a series of bytes and also strings ... (which are bytes anyway...lol) ... congratulations you discovered the oldest web Api practice just yesterday.. I guess better late than never ...welcome to reality man ... lol bye bye
@kvelez
@kvelez 11 месяцев назад
using ConsoleApp1; using System.Text.Json; var person = new Person("Kevin", 19); var _serializeJSON = JsonSerializer.Serialize(person); File.WriteAllText("file.json", _serializeJSON); var readJSON = File.ReadAllText("file.json"); Person _deserialize = JsonSerializer.Deserialize(readJSON); Console.WriteLine($"{_deserialize.Name} is {_deserialize.Age} years old."); Console.ReadKey();
Далее
How to Send Clicks and Key Strokes to Any Application
33:48
Собираю Фигурку Из Лего! 🧩
0:52
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
Read (Parse) JSON data from URL in ASP.Net
3:42
How to Parse JSON in C
7:09
Просмотров 70 тыс.
My 10 “Clean” Code Principles (Start These Now)
15:12
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 720 тыс.