I have a few other things. but this is a bit more urgent. finally heard back about the job interview. They want me to build something from scratch as a "take home code assignment". Not just any thing though. I have to take some .jsons and parse data from it. This is pretty beyond what i got. god if this was MySQL this would be so fking easy. I was told to "not spend more than 2 hours on this" but lord knows i already have lol
I'm trying to figure out how to proceed here. I feel like I'm in way over my head. I am googling and ive pulled hte .json data into python but I keep getting an error when trying to pull specific information from the .json. I'mma keep googling and see if I can get past this. But, like,
what do I do?
1) tell the recruiter that I just cant do this
2) waste peoples time and come in with /something/.
3) something else?
In better news, I didn't have a panic attack about this. Which is wild. Proud of me.
I'm trying to figure out how to proceed here. I feel like I'm in way over my head. I am googling and ive pulled hte .json data into python but I keep getting an error when trying to pull specific information from the .json. I'mma keep googling and see if I can get past this. But, like,
what do I do?
1) tell the recruiter that I just cant do this
2) waste peoples time and come in with /something/.
3) something else?
In better news, I didn't have a panic attack about this. Which is wild. Proud of me.
no subject
Date: 2021-07-07 03:50 am (UTC)From:no subject
Date: 2021-07-07 02:02 pm (UTC)From:no subject
Date: 2021-07-07 03:23 pm (UTC)From:no subject
Date: 2021-07-07 12:47 pm (UTC)From:no subject
Date: 2021-07-07 02:01 pm (UTC)From:no subject
Date: 2021-07-07 04:16 pm (UTC)From:Wish I saw this last night! Too busy playing bloodborne :(
LMK what you found, I'm curious. I still think, even if you give up on this particular job, you should still try it because I believe you can do it. Even if it's hard, you can, I know you can :)
And then it's like killing a boss in Bloodborne.
no subject
Date: 2021-07-07 08:39 pm (UTC)From:TypeError: list indices must be integers or slices, not str
I'm fucking trying i guess. hahaha.
no subject
Date: 2021-07-07 08:49 pm (UTC)From:(don't worry I won't do it for you and if you don't want "friendly advice" I won't offer, but I'm curious! and if you do want friendly advice of course I'll try to assist)
Are you using a library to parse it? Or are you doing it from scratch?
no subject
Date: 2021-07-07 08:58 pm (UTC)From:no subject
Date: 2021-07-07 09:37 pm (UTC)From:lookup json.dumps - I think. I could be wrong but that appears to be the method used to pull the data out and "Dump" to a "S"string.
https://www.geeksforgeeks.org/json-dumps-in-python/
https://www.geeksforgeeks.org/json-dump-in-python/
no subject
Date: 2021-07-07 09:47 pm (UTC)From:no subject
Date: 2021-07-07 08:26 pm (UTC)From:no subject
Date: 2021-07-07 08:38 pm (UTC)From:TypeError: list indices must be integers or slices, not str
no subject
Date: 2021-07-07 09:01 pm (UTC)From:"jsons function as dictionaries in Python"
The error makes it sound like you're reading the JSON as a list, and since Python can display a whole object with print it'll render the entire object. IDK enough about JSON (which is why I asked to see your code).
It's been ages since I used Dict, I remember tuples use () and Lists use []. OK _ I had to look dicts use {} (I knew there was a different bracket type LOL)
Are you using something like jsonbobject["keyname"]
But you may need to use {} like : jsonobject{"keyname"}
Which indicates it's a dictionary and thus expecting a string.
Does this sound close to what's happening?
no subject
Date: 2021-07-07 09:06 pm (UTC)From: