I have no idea on how to get this info
Anyone wanna try helping me out? I've searched YouTube and Stackoverflow, I found a few leads but none have worked so far. They probably DO but I wouldn't have the mindset to make them work lol.Code:http://www.gaiaonline.com/forum/like/updateCount/94587823/dislike/?_view=json&_gaia_t_=1337&1337
Results 1 to 8 of 8
Thread: [C#] Gaia JSON
- 25 Oct. 2014 05:57am #1
[C#] Gaia JSON
Spoiler:
- 25 Oct. 2014 06:03am #2
what are you trying to do exactly?
What data are you trying to get from the JSON?I'm lightning on my feet
- 25 Oct. 2014 06:11am #3
- 25 Oct. 2014 02:50pm #4
Do you have any base code that you've already started with?
Your problem seems pretty vague right now. I don't know if you're trying to login to Gaia via HTTP then grab the JSON or if you're trying to accomplish something else.I'm lightning on my feet
- 25 Oct. 2014 11:49pm #5
- Join Date
- Apr. 2013
- Location
- Minnesota
- Posts
- 1,325
- Reputation
- 114
- LCash
- 0.00
Parsing REST Services JSON Responses (C#)
you could use the built-in regular expressions, but this may seem counter-intuitive.
this is assuming you already have the text http response.Last edited by Kingz V; 25 Oct. 2014 at 11:54pm.
https://discord.gg/TvN6xUb ~ chat on discord pls.
- 28 Oct. 2014 11:32am #6
yeah, best use regex to parse out what you want. i assume you want the values eh?
- 31 Oct. 2014 05:20am #7
It's json. You shouldn't be using regular expressions to parse json documents. There's plenty of libraries out there, often built in to the language to do this. I'm not too well versed on .NET, but using regex to parse a json document is a fairly unintuitive approach (the only argument I'd be willing to concede on is if you have to include a 3rd party library, in which case the performance loss may outweigh the gains if it's for a simple, one-off action).
- 31 Oct. 2014 08:40am #8
yeah regex is bad practice as well and it's not advised to use it all the time. if regex didn't satisfy their needs then it's exactly what you said artificial. some languages even have spiffy json decoding functions and i've never really liked c# only used it a few times. also, welcome back arti :*
Last edited by Butts; 31 Oct. 2014 at 09:05am.