[C#][Review] Am I parsing my json correctly like this?
Because I'm bored, intrested in Reddit bots and only know C# I thought I'd look into learning how to work with web api's. One part of that is handling json responses.
I've got a simple program that outputs the comment contents + author name of the currently signed in Reddit user (or whoever you specify). It seems to work, but I don't feel like this is a good way of handling my json.
I think it will fail to catch some posts because of the way I try to recognize Json objects/entries (??) and my usage of the "body" and "author" strings. I also feel lost because of the many ways I've seen on handling Json data. Considering Jsonobjects seem to be for smaller size files I chose the datareader (right decision?).
Before going further with this stuff I'd appreciate someone looking at my code. Giving me pointers on what other methods of handling Json I could look into and telling me what the obvious flaws are.
Submitted January 31, 2016 at 06:36PM by Vincenttb
via reddit http://ift.tt/1RUrbcc