How to Parse JSON Data in C# - Coding Gems

  Рет қаралды 35,261

ParametricCamp

ParametricCamp

Күн бұрын

In this Coding Gem, I will teach you how to easily serialize and de-serialize JSON data in C#!
💻Code: github.com/Par...
💻Learning C#: • Learning C#: Introduct...
Join us:
📺 / parametriccamp
💬 / discord
📷 / parametriccamp
🐦 / parametriccamp
💻github.com/Par...
📷🕺 / garciadelcastillo
🐦🕺 / garciadelcast

Пікірлер: 30
@linusfahlander2449
@linusfahlander2449 7 ай бұрын
Hours spent searching for good tutorials and i finaly find this channel. Amazing video!
@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!
@tjlaser99
@tjlaser99 11 ай бұрын
Never seen anyone so good at explaining!
@danpurdy32
@danpurdy32 Жыл бұрын
fantastic! clear, concise, and extremely helpful. Thank you!
@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)?
@idegarceus5895
@idegarceus5895 Ай бұрын
Thank you! That was very helpful.
@BF0001
@BF0001 4 ай бұрын
FANTASTIC. Very well done and explained so clearly. 10/10
@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)
@mikelammi3088
@mikelammi3088 3 ай бұрын
Thanks for your content! Clear and concise 👏
@seanrendall5495
@seanrendall5495 4 ай бұрын
Super helpful. All I wish this included was how to get just a portion of the JSON file as a string.
@gameofjoy3561
@gameofjoy3561 3 ай бұрын
Very nice video. You made it so easy. Thank you so much. 👍
@adyman0010
@adyman0010 Ай бұрын
It would be also nice if you could show us how to write data into the .json file :)
@thomaswoods1365
@thomaswoods1365 2 ай бұрын
This is awesome. Thank you! Thank you!
@alexsnowblind
@alexsnowblind 7 ай бұрын
Thank you! Well explained!
@Dismanameboi
@Dismanameboi 18 күн бұрын
Amazing channel
@markus72wi
@markus72wi Жыл бұрын
Thanks for this clear tutorial , helped a lot
@Za3DoRzX
@Za3DoRzX 10 ай бұрын
Great explanation.
@EmranSalah
@EmranSalah 11 ай бұрын
Very helpful. Thank you very much
@ahmedadel2487
@ahmedadel2487 11 ай бұрын
FANTASTIC VIDEO
@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? 🤔
@mindblower113
@mindblower113 11 ай бұрын
Nice video man thanks.
@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 } }
@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
@nearissad3127
@nearissad3127 10 ай бұрын
oh my god thank you
@athanasmb
@athanasmb Жыл бұрын
thansk!!
@wirelessmistress608
@wirelessmistress608 5 күн бұрын
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 10 ай бұрын
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
ParametricCamp
Рет қаралды 27 М.
JSON IN C# - Downloading Data and Making Objects From It
24:10
tutorialsEU
Рет қаралды 40 М.
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 1,3 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 17 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,7 МЛН
Using JSON IN C#! Serialization & Deserialization made easy!
14:47
tutorialsEU - C#
Рет қаралды 32 М.
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 115 М.
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 176 М.
Python JSON Serialization/Deserialization Made Easy!
11:46
Stoched
Рет қаралды 14 М.
why do header files even exist?
10:53
Low Level
Рет қаралды 414 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 1,3 МЛН