Member-only story
Creating a JSON Class in C# | B2Basic Series Ep-1
Understanding how to work with JSON
If you’ve ever wondered how to map a JSON object to a C# class, you’re just in luck!
Introduction to JSON Class in C#
JSON and C# share a special relationship in the coding ecosystem. Understanding their intricate workings also releases possibilities that simplify your way of coding
▪️What is JSON and why am I talking about it in 1st Episode?
JSON, an acronym for JavaScript Object Notation, is a lightweight data exchange format that is easy to read and write. It’s used quite frequently in modern applications for data storage and communication between a server and a web application.
all thanks to its language-independent nature 💞
look into this, simple JSON →
{
"name":"John",
"age":30,
"car":null
}Here we have a JSON object with three properties: name, age, and car. So it actually stores in <key>: <value> pair, where key is kinda string type and value can be of any type.. but yeah that’s why its easy to understand for all LANGUAGES! even our language too.. :)
At its core, a JSON class in C# is a class…
