After watching and reading about a dozen guides, yours was the one that finally explained what I was looking for in an easy to follow fashion. Thank you for your tutorial!
Hi Les! I just watched this video tutorial and found it to be extremely helpful. I cannot thank you enough for making this, and taking the extra time to show us the use of a dynamic class, with and without inheritance, and the multiple json examples. I can't wait to check out your website and other videos. Cheers!
Thank you for this video. Over 35 years as a Visual Basic developer (mostly business software) and I made the switch to C# this year. JSON has been a nemeses of mine, but your video finally explained those things that everyone else seems to skip over and I think I now have enough knowledge to move on with the stack of new software I want to write using C#. Thank you, thank you, thank you! And thank you for taking the time to explain inheritance. Though fairly straight forward, I have seen many people confused over inheritance and I'm betting it will help anyone starting out or a tad confused.
dude you need more views, you just helped me so so much, if i had seen this earlier i wouldn't of lost 2 days trying to figure out the classes and inbedded things etc grrrrr so annoying, thank you
Hey man, I was totally stuck on iterating through the arrays, I'm new at this JSON stuff and you nailed it on getting me over the hump, great work on your tutorial. I've subscribed and given you a like.
I'm right there with you. Sean was the best Bond, but I too have a soft spot for Roger... for the exact same reason as you do. Also, your content is always outstanding, thanks!
Brilliant Les. I'm new to RESTful APIs and thought it would be a headache but your videos have made it painless. First class videos and your examples are great. Many thanks!
G'day Les, I'm a bit late to this party, but thanks for all this detail. This is a fundamentally simple concept, with straightforward code, that I've finally cottoned on to after seeing this. My endpoints are bouncing around in delight now, all lean and ready for action.
Nice video. After stuck in C# sharp and JSON Stuff, this got me absolutly in an comfort zone in that topic. Now i know how to use json as config files, and some other interesting stuff. Programmed every of your steps in parallel, helps a LOT! Thank you !
Thanks Les, this was one of the best video tutorials I have seen. Thanks so much for taking the time to create this, I will be using it as a reference going forward. As you said in the video, a lot of presenters don't cover every step and basic fundamentals can be missed. Well done!
Les you are an excellent teacher. Keep up the good work and I like your sense of humour. I understand JSON structure and everything about it, thanks to your video, even though I have maintained an API to send simple JSON to outside service, but never understood the basics of it. Thanks again
Excellent Video Les, only starting to get into JSON and a REST API project myself, your previous video and this video in particular was very helpful, especially the last 10-15mins when you had a look at the classes - that made a bit more sense to me :) I had seen the Newtonsfoft.json mentioned on sites a few times and was afraid it was going to be a messy/fiddly plugin or addon, but thankfully it turned out to be pretty much a dll ref to the project thanks again, Paul
Very good, very clear - thanks for taking the time to make and post. I loved the cheering crowds, and taking everything from first principals is very helpful. I feel that many tutorials ignore such 'trivial' steps, and this seeps into them then missing the important ones too, or skimming over them.
Hi Phil, thanks for the great comment. Yes I agree, for me personally I feel too may otherwise great tutorials skim over small details or make too many assumptions which can make it difficult to follow. I probably over explain things though, so need to think about condensing some content! Glad you found the video useful though.
this is great! took me from a noob to this. now my task is to get what i learned in all three of these json #sharp and Rest videos into a SSIS script task. thank you for what you do
@@binarythistle I can't thank you enough for these videos. So glad I found your channel! I love the step-by-step, type it all in approach, rather than copy-pasting in a bunch of code. I'm a database developer that understands programming concepts but sometimes I need my hand held! My next step is to also integrate this code into an SSIS script task like Jeremiah. The only piece I am missing now is persisting the JSON payload to a SQL Server database. Do you have any resources that cover this?
Thank you Mr. Jackson! I love your teaching. Great work on your tutorial. You saved lot of my time, when I tried to find how to do, how to work with collections, and so on. Thanks!!!!
I like the way you show us everything. The next time I go to Thailand I want to visit James Bond island, where Roger Moore was in The Man with the Golden Gun.
At 49:32, which modeling language are you using? In UML, the inheritance arrows would be in the opposite direction, as jsonPersonArray inherits jsonPersonComplex that inherits jsonPersonSimple
Les, I've got to thank you for the great tutorial! Straight and to the point. Thanks for explaining it like to me like I'm 5!! I think I can actually do the work I've been assigned here at work now. BTW, great accent. Bookmarked and subscribed. You pulled my fat outta the fire!!
Finally now I know how to desrialize JSON in c#. It's a hard at first to grasp the concept if you are PHP dev because PHP makes it so easy. json_encode(array) and json_decode(array) that's it.
Hi Les, i'm following along with your code but I'm getting a "Error: Object reference not set to an instance of an object". It looks like I need to add the phoneNumbers array to jsonPersonComplex am I right? FYI i"m using the dynamic way.
Thanks Les, great tutorial - it helped me understand how to setup my class and iterate through the arrays - its pretty straight forward - just needed that little push!
33:45 "It's important to note that the attribute names in our C# class should match the attribute name of the JSON we're expecting." I was curious about this because of a scenario where I'm doing a transform/mapping from an API to a different kind of object and I was wondering if it was necessary to create properties if they will never get used.
Very well done video! It's incredibly straight forward and easy to follow. One thing that could have helped was to include the example JSON strings in the description or a link to them. I think I saw a link pop up in the video, but I missed it. I hope to put this to work soon!
Thanks Robert. Good pick up actually - i need to make better use of the description section for things like links and stuff - great feedback! Cheers, Les
I hit back button thinking that I clicked on something accidentally. Thanks for the video you saved my day. I was wrestling with another library. Newtonsoft.Json is simple to use.
@@binarythistle It is the audio mastering. Your recorded voice is 12 db lower than Unity and then the video clip is at Unity. It is a considerable jump. I have trouble hearing your audio without cranking my sound system. If you ensure your mic is recording your audio nearest to 0 or mastering levels during editing, it will help a lot of people out. THX
Hi! I'm seeing this and its a great video, you're doing pretty good explanations. I like the way you explain things, I mean, from base up - some people like to thrown concepts people may have never heard before and pretend everyone knows it - whereas you build up from the basic and continues on, which is fantastic. I would like to ask you do something, if its not much work, in the future: Subtitles. Not automated ones, real ones I mean. Some of us do not have such good hearing or audio equipment, or have problems understanding your accent (British Islands, btw? Can't recognize it myself). Its why I tend to eschew video tutorials, I feel like I am fighting both to understand and type what I hear, and to understand what I am being taught.
When you use the JsonConvert.DeserializeObject(jsontext) - what kind of object do you get back? I get a JObject - and as a result cannot pick out individual values like you have with the firstname and so on. Any ideas why this may be?
Excellent tutorial. Using this project, how would I get the JSON response directly from the URL, rather than pasting it into a textbox? I have created an Openweather account and got an API key.
Great tutorial, helped me a lot! But I have one thing to ask if you can help me with. Let's say you have more than one peraon in that json array, how would you print out all of them in the output box? I need to have some list of those people, but how to make this list? If you could help, I would be most grateful
I actually had this problem yesterday of a JSON object where I did not have the entire object created correcty in a c# class so I didn't get the entire object when deserialized. Using dynamic (and PostMan) I was able to figure out the missing peaces and properly build the c# class from methods used in this video.
Excellent Video and easy to understand. Still have a pretty small question, how about if from the JSON array of Phone Number, if we have to read one specific type of phone number. Example:- We just wanted to read the phone number of Type 'Home', what should be done for that. Reply will be highly appreciated. Thanks again!!
Can we build a desktop based application (C#,WPF, .NET core/.net framework) by using Rest API ? We want to read and write data from aws IoT cloud to our desktop windows machine.
Les, you keep emphasizing that the name of the attribute in our class should be the same as in the JSON. However, I have a nested object, which has the name "DE:Company Products" - and I'm pretty sure C# doesn't allow for neither colons nor spaces in their variable names, so how do I go about naming that? It's an array of string values if that helps.
Enjoyed the tutorial, and it cleared a few things up for me. Transversely, you need to define what 'ToString()' does in your class. By default only the class name will be returned, whereas 'dynamic' is horribly ... magic ... God I hate magic!
Hi there! No I've not made a video about Serialising JSON, but if can certainly put that on my backlog of things to do next! Thanks for the feedback - appreciated!
Awesome tutorial! You're teaching style and implementing a whole app from scratch was very informative and rewarding. Thanks! Keep it up, please! (p.s. at 35:19, you just need to override the ToString() method in your jsonPersonSimple class to get it to display how you want)
Hello I am working with my API in Web then I already serielize the json data and display it. But I can't able to to deserialize the json to c#. Even if I converted in the json2csharp.
DATA { "result": "success", "status": "approved", "message": "student has no problem", "data": { "firstname": "sample", "lastname": "sample", "mi": "s.", "classfication": "student", "date": "2022-05-07", "dataUser": "approved", "temperature": "36.7", "timesIn": 14, "message": "student has no problem" } } Data Firstname: Data Lastname: /*This is the output*/
How do I handle returning the value of a json data value where the key is two words separated by a SPACE. Example "Serial Number". This does NOT work: System.Console.WriteLine("Device Name: " + deviceData.Serial Number);
Great tutorial; really nice to follow along with the webform. Really good teacher. And the husky accent is indeed super hot. Thanks for taking the time to share this; I'm looking forward to seeing more of your tutorials.
Very good job. Everything is easy now. But if I were you, i would add to description a json code you use to test your app as well. Greetings from Poland
i'm receiving nested object json strings from a rest api, but some of the values which would expect double or bool for example, are actually null. i.e. i have an item which can be bought or sold, but it's only set to sold therefore bought price is null, and isBought attribute (bool) is also null. whats the best way for handling that?
After watching and reading about a dozen guides, yours was the one that finally explained what I was looking for in an easy to follow fashion. Thank you for your tutorial!
Hi Les! I just watched this video tutorial and found it to be extremely helpful. I cannot thank you enough for making this, and taking the extra time to show us the use of a dynamic class, with and without inheritance, and the multiple json examples. I can't wait to check out your website and other videos. Cheers!
Thank you for this video. Over 35 years as a Visual Basic developer (mostly business software) and I made the switch to C# this year. JSON has been a nemeses of mine, but your video finally explained those things that everyone else seems to skip over and I think I now have enough knowledge to move on with the stack of new software I want to write using C#. Thank you, thank you, thank you! And thank you for taking the time to explain inheritance. Though fairly straight forward, I have seen many people confused over inheritance and I'm betting it will help anyone starting out or a tad confused.
Just wanted to pop in and let you know I foundTutorial was very useful in helping me in this JSON area. Have a great day!
dude you need more views, you just helped me so so much, if i had seen this earlier i wouldn't of lost 2 days trying to figure out the classes and inbedded things etc grrrrr so annoying, thank you
Hey man, I was totally stuck on iterating through the arrays, I'm new at this JSON stuff and you nailed it on getting me over the hump, great work on your tutorial. I've subscribed and given you a like.
Hi Alex, great to hear - and thanks for the like and subscribe! Cheers, Les
Wow wow wow beautifully explained between self taught and professional programmer. I appreciate this tutorial in all ramifications
I'm right there with you. Sean was the best Bond, but I too have a soft spot for Roger... for the exact same reason as you do. Also, your content is always outstanding, thanks!
Brilliant Les. I'm new to RESTful APIs and thought it would be a headache but your videos have made it painless. First class videos and your examples are great. Many thanks!
G'day Les, I'm a bit late to this party, but thanks for all this detail. This is a fundamentally simple concept, with straightforward code, that I've finally cottoned on to after seeing this. My endpoints are bouncing around in delight now, all lean and ready for action.
Nice video. After stuck in C# sharp and JSON Stuff, this got me absolutly in an comfort zone in that topic. Now i know how to use json as config files, and some other interesting stuff. Programmed every of your steps in parallel, helps a LOT! Thank you !
Superb video. I'm just getting into C# for a project I'm working on and needed a good summary of working with JSON. You're a great teacher.
Thanks Les, this was one of the best video tutorials I have seen. Thanks so much for taking the time to create this, I will be using it as a reference going forward. As you said in the video, a lot of presenters don't cover every step and basic fundamentals can be missed. Well done!
Much appreciation for creating this tutorial! I'm fairly new to C# and APIs and your video tutorials on them are a great introduction.
You have helped me immensely! I have not found a guide that made me understand how this works as well as your video does.
Very nice tutorial. I hate long videos, but this one was an hour very well spent. It was exactly what I needed.
hahaha. Yes I'm trying to shorten my videos as they probably are too long! Glad you enjoyed this one though!
Thoughtfully done. Thanks. It's simple stuff but I couldn't get it to work for a while until I discovered your video and followed along. Now I got it!
Les you are an excellent teacher. Keep up the good work and I like your sense of humour. I understand JSON structure and everything about it, thanks to your video, even though I have maintained an API to send simple JSON to outside service, but never understood the basics of it.
Thanks again
Excellent Video Les, only starting to get into JSON and a REST API project myself, your previous video and this video in particular was very helpful, especially the last 10-15mins when you had a look at the classes - that made a bit more sense to me :)
I had seen the Newtonsfoft.json mentioned on sites a few times and was afraid it was going to be a messy/fiddly plugin or addon, but thankfully it turned out to be pretty much a dll ref to the project
thanks again, Paul
This is some high quality tutorial. Well prepared and narrated. Great job, thank you.
it took patience and a few attempts to get my head round json.net but this is brilliant .. thanks
Very good, very clear - thanks for taking the time to make and post. I loved the cheering crowds, and taking everything from first principals is very helpful. I feel that many tutorials ignore such 'trivial' steps, and this seeps into them then missing the important ones too, or skimming over them.
Hi Phil, thanks for the great comment. Yes I agree, for me personally I feel too may otherwise great tutorials skim over small details or make too many assumptions which can make it difficult to follow. I probably over explain things though, so need to think about condensing some content! Glad you found the video useful though.
this is great! took me from a noob to this. now my task is to get what i learned in all three of these json #sharp and Rest videos into a SSIS script task. thank you for what you do
No problem! Thank you for taking the time to leave a comment!
@@binarythistle I can't thank you enough for these videos. So glad I found your channel! I love the step-by-step, type it all in approach, rather than copy-pasting in a bunch of code. I'm a database developer that understands programming concepts but sometimes I need my hand held! My next step is to also integrate this code into an SSIS script task like Jeremiah. The only piece I am missing now is persisting the JSON payload to a SQL Server database. Do you have any resources that cover this?
Thank you Mr. Jackson! I love your teaching. Great work on your tutorial. You saved lot of my time, when I tried to find how to do, how to work with collections, and so on. Thanks!!!!
Awesome - glad to hear it Tomas!
Ah, king Leonidas is now a tutor?! Awesome. 👊🏾
Interesting tutorial, reading it and taking notes as I go along. Question:
9:25
You can see our what object? Primary? Paid? I could't understand.
So simplified and understandable for everyone. Thank you so much.
Hello Mustafa - thanks for the feedback mate! Cheers, Les
I like the way you show us everything. The next time I go to Thailand I want to visit James Bond island, where Roger Moore was in The Man with the Golden Gun.
Excellent video. I had only 'heard' of JSON up until this morning... now I'm an expert!!! :D Just kidding, many thanks even 6yrs later!
really fantastic tutorial. I like the calm and thorough attitute ;)
At 49:32, which modeling language are you using? In UML, the inheritance arrows would be in the opposite direction, as jsonPersonArray inherits jsonPersonComplex that inherits jsonPersonSimple
Hay DJAX, yeah good pick up! You're quite right the arrows are supposed to be the other way around. Thanks for pointing out.
Excellent explanation and high quality audio and video.
Thanks Kami!
Thank you!!! You literally saved my life, excelent tutorial
simply awesome!!! Les, you are a great teacher.
Thank you for this. This is exactly what i needed. Thanks for taking the time to share your knowledge!!
My pleasure - thanks for the feedback Sheldon.
Les, I've got to thank you for the great tutorial! Straight and to the point. Thanks for explaining it like to me like I'm 5!! I think I can actually do the work I've been assigned here at work now. BTW, great accent. Bookmarked and subscribed. You pulled my fat outta the fire!!
Nice video. It got me in the right direction on how to use json as config files, and some other interesting stuff. Thank you!
Cool!
Good intro! Like your style of explaining and nice of you to show and compare "dynamic" vs a real class.
Cool, nice feedback mate - thanks!
can you explain how to deserialize multiple json objects from api? Thank you!
I know it's late but this might help someone..
stackoverflow.com/questions/44011596/c-sharp-newtonsoft-deserialize-json-array#44011704
Finally now I know how to desrialize JSON in c#. It's a hard at first to grasp the concept if you are PHP dev because PHP makes it so easy. json_encode(array) and json_decode(array) that's it.
123/5000
Chief, you're tired of telling software ... It was a very good education. The labor is great, we can't afford it. Allah bless you... :)
Hi Les, i'm following along with your code but I'm getting a "Error: Object reference not set to an instance of an object". It looks like I need to add the phoneNumbers array to jsonPersonComplex am I right? FYI i"m using the dynamic way.
Thanks , we’re looking exactly what you’ve provided here
Thanks Les, great tutorial - it helped me understand how to setup my class and iterate through the arrays - its pretty straight forward - just needed that little push!
That's cool Chad! I'm glad it helped.
In VB, to start, use :
MyString = TB_Source.Text
Dim j = JsonConvert.DeserializeObject(Of Object)(MyString)
Yhank's for sharing
Thanks Thomas
33:45 "It's important to note that the attribute names in our C# class should match the attribute name of the JSON we're expecting."
I was curious about this because of a scenario where I'm doing a transform/mapping from an API to a different kind of object and I was wondering if it was necessary to create properties if they will never get used.
How do you deserialize when you have an array inside an array?
Hi Greate video. Say you had nested collection/Array in that json. How would you write that class??
You made my day sir! Huge time saver, thanks!
Very well done video! It's incredibly straight forward and easy to follow. One thing that could have helped was to include the example JSON strings in the description or a link to them. I think I saw a link pop up in the video, but I missed it. I hope to put this to work soon!
Thanks Robert. Good pick up actually - i need to make better use of the description section for things like links and stuff - great feedback! Cheers, Les
This was a great video! You got my subscription without hesitation!
Hello, I want to thank you for your correct microphone settings, it sounds perfect. So I can listen and learn.
Thanks! I bought a couple of different microphones to try and get the best sound I could! Cheers.
Very well done and I appreciate the full details that you cover. I am trying to learn this new and you nailed it perfectly. Your pace is just right.
Awesome! Thanks for the feedback always great to hear that people find this stuff useful.
Super helpful - love the detail
Thanks!
Not gonna lie, the people screaming scared the crap out of me at first. Nice video series though.
You made me laugh! Wasn't intending to shock anyone, but I guess now I think about it...! Anyway glad you enjoyed the video!
I hit back button thinking that I clicked on something accidentally. Thanks for the video you saved my day. I was wrestling with another library. Newtonsoft.Json is simple to use.
@@binarythistle lol yep made me jump hehe i was in bed code dozing XD was actually what I needed, anyway awesome stuff, loved it!
@@binarythistle It is the audio mastering. Your recorded voice is 12 db lower than Unity and then the video clip is at Unity. It is a considerable jump. I have trouble hearing your audio without cranking my sound system. If you ensure your mic is recording your audio nearest to 0 or mastering levels during editing, it will help a lot of people out. THX
great tutorial for new comers into json stuff
Cool hope it was useful!
Thank you so much! Love the clear simple way you explain things.
No worries! Glad you like the videos!
Gr8 explaination, thanks for video Jackson
My pleasure mate!
Hi! I'm seeing this and its a great video, you're doing pretty good explanations. I like the way you explain things, I mean, from base up - some people like to thrown concepts people may have never heard before and pretend everyone knows it - whereas you build up from the basic and continues on, which is fantastic.
I would like to ask you do something, if its not much work, in the future: Subtitles. Not automated ones, real ones I mean. Some of us do not have such good hearing or audio equipment, or have problems understanding your accent (British Islands, btw? Can't recognize it myself). Its why I tend to eschew video tutorials, I feel like I am fighting both to understand and type what I hear, and to understand what I am being taught.
When you use the JsonConvert.DeserializeObject(jsontext) - what kind of object do you get back? I get a JObject - and as a result cannot pick out individual values like you have with the firstname and so on. Any ideas why this may be?
Did you ever solve this issue? Im stuck
Great video binarythistle ! Keep up the good work !!
Cool thanks for great feedback! Hope yo found it useful!
Sir, if our text file have multiple jason object than how we can fetch one object on the base of id or some other parameters any idea please reply
Excellent tutorial. Using this project, how would I get the JSON response directly from the URL, rather than pasting it into a textbox? I have created an Openweather account and got an API key.
You are AMAZING. Thank you SO much for this.
I am not able to download newtonSoft.Json for unity.
Great tutorial, helped me a lot! But I have one thing to ask if you can help me with. Let's say you have more than one peraon in that json array, how would you print out all of them in the output box? I need to have some list of those people, but how to make this list? If you could help, I would be most grateful
I actually had this problem yesterday of a JSON object where I did not have the entire object created correcty in a c# class so I didn't get the entire object when deserialized. Using dynamic (and PostMan) I was able to figure out the missing peaces and properly build the c# class from methods used in this video.
Top notch, entertaining too. Thanks so much!
I'm new in VB and C#. Could I do the same getting a json from a url? Is it necessary create class for each object? Thanks. Nice video
thank you very much, it's the best explanation made me understand how to Deserializing the array
good to hear a familiar accent on here for a change :D great video helped me a lot :)
Awesome! Hope the vid was useful!
I love you man, it helped me a lot
Cool mate!
Man you are awesome...Love you and your way of explaining concepts.
Excellent Video and easy to understand.
Still have a pretty small question, how about if from the JSON array of Phone Number, if we have to read one specific type of phone number. Example:- We just wanted to read the phone number of Type 'Home', what should be done for that. Reply will be highly appreciated. Thanks again!!
Can we build a desktop based application (C#,WPF, .NET core/.net framework) by using Rest API ?
We want to read and write data from aws IoT cloud to our desktop windows machine.
Hi Les, Thanks for the great tutorial. Q) why are you creating classes with a class instead of keeping them seperate?
Excellent video. Thanks man!
Thanks Kieran - hope you found it useful!
This really helped me out. Glad I stumbled onto this channel!
Cool glad it helped!
Les, you keep emphasizing that the name of the attribute in our class should be the same as in the JSON. However, I have a nested object, which has the name "DE:Company Products" - and I'm pretty sure C# doesn't allow for neither colons nor spaces in their variable names, so how do I go about naming that? It's an array of string values if that helps.
Enjoyed the tutorial, and it cleared a few things up for me. Transversely, you need to define what 'ToString()' does in your class. By default only the class name will be returned, whereas 'dynamic' is horribly ... magic ... God I hate magic!
Hi and thanks for this great tutorial
Thanks Mustapha!
Superbly presented. THANKS.
Great video - have you also made a video about Serialising JSON?
Hi there! No I've not made a video about Serialising JSON, but if can certainly put that on my backlog of things to do next! Thanks for the feedback - appreciated!
Brilliant video, helped me a lot! Was having some serious issues....
Great to hear Ross - glad it helped!
@@binarythistle It did, but ran into an issue with processing multiple objects in a response. No doubt I'll google my way out of it.
brilliantly simple
Greta feedback thanks! I aim to make the videos accessible and useful.
Can you show how to deserialize to polymorphic object ?
Awesome tutorial! You're teaching style and implementing a whole app from scratch was very informative and rewarding. Thanks! Keep it up, please!
(p.s. at 35:19, you just need to override the ToString() method in your jsonPersonSimple class to get it to display how you want)
Hey Ryan thanks for the feedback - always looking for those pick ups! Cheers
Excellent video explanation, thank you.
Thanks for the feedback Gabriela - hope you found it useful!
I need to send data from Desktop App. which is C# to Website? please help me
Great video. It was so much helpfull to me !
Hello I am working with my API in Web then I already serielize the json data and display it. But I can't able to to deserialize the json to c#. Even if I converted in the json2csharp.
DATA
{
"result": "success",
"status": "approved",
"message": "student has no problem",
"data": {
"firstname": "sample",
"lastname": "sample",
"mi": "s.",
"classfication": "student",
"date": "2022-05-07",
"dataUser": "approved",
"temperature": "36.7",
"timesIn": 14,
"message": "student has no problem"
}
}
Data Firstname:
Data Lastname:
/*This is the output*/
var toJson = JsonConvert.SerializeObject(per);
var payload = new StringContent(toJson, Encoding.UTF8, "application/json");
var result = client.PutAsync(endpoint, payload).Result;
var json = result.Content.ReadAsStringAsync().Result;
//Console.WriteLine("display " + json);
try
{
var dataInfo = JsonConvert.DeserializeObject(json);
Console.WriteLine("DATA
" + dataInfo);
Console.WriteLine("Data Firstname:
" + dataInfo.firstname);
Console.WriteLine("Data Lastname:
" + dataInfo.lastname);
}
catch(HttpRequestException err)
{
Console.WriteLine(err.Message);
}
/*This is the code */
I already figure out. Got the expected output.
Nice video.. have to test tonight..
How do I handle returning the value of a json data value where the key is two words separated by a SPACE. Example "Serial Number". This does NOT work: System.Console.WriteLine("Device Name: " + deviceData.Serial Number);
It would be great if you can explain reflection as the subject in this very video, touching it a bit.
Great Video - very good. Thanks a lot.
Thanks for the feedback Jens - hope you found it useful!
Thank you so much, very clean, clear and neat. Nice accent too :)
Thanks Vytautas! I'm originally from Scotland.
Great tutorial; really nice to follow along with the webform. Really good teacher. And the husky accent is indeed super hot.
Thanks for taking the time to share this; I'm looking forward to seeing more of your tutorials.
Thanks! Hoping to have a new vid up soon!
thanks for the vid
No worries hope you found it useful!
Very good job. Everything is easy now. But if I were you, i would add to description a json code you use to test your app as well. Greetings from Poland
Hi Mateusz! Thanks for the feedback, yes I think you're right - more testing examples would be useful, I'll work that in to my next tutorial.
i'm receiving nested object json strings from a rest api, but some of the values which would expect double or bool for example, are actually null. i.e. i have an item which can be bought or sold, but it's only set to sold therefore bought price is null, and isBought attribute (bool) is also null. whats the best way for handling that?
currently i'm deserialising manually using tryParse and regex filters but does the deserialize methods is .NET handle this case?