frenzy: (Default)
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.

Date: 2021-07-07 03:50 am (UTC)From: [personal profile] ioplokon
ioplokon: purple cloth (Default)
Can you convert it to CSV? Or also, sometimes importing to RStudio makes it easier for me to handle bc I prefer data frames to jsons...

Date: 2021-07-07 03:23 pm (UTC)From: [personal profile] ioplokon
ioplokon: purple cloth (Default)
Good luck!! Also, I believe jsons function as dictionaries in Python, if that helps at all? Sometimes for me the hardest part is actually just understanding how the data is structured.

Date: 2021-07-07 12:47 pm (UTC)From: [personal profile] sabotabby
sabotabby: (furiosa)
Sounds like the company wants some free labour.

Date: 2021-07-07 04:16 pm (UTC)From: [personal profile] symbioid
symbioid: (Default)
Good job on no panic attack. don't give up. What's the error you get. Are you using a json parsing library? Did they give you an example json or tell you to use any random json?

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.

Date: 2021-07-07 08:49 pm (UTC)From: [personal profile] symbioid
symbioid: (Default)
can you mail me the code? I'm curious symbioid@gmail.com.

(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?

Date: 2021-07-07 09:37 pm (UTC)From: [personal profile] symbioid
symbioid: (Default)
LOL I won't! But I did find a tip I can give:

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/


Date: 2021-07-07 08:26 pm (UTC)From: [personal profile] frandroid
frandroid: A key enters the map of Palestine (Default)
You say you've pulled the JSON data into python--can you just return the top level of the object to see what's been pulled in?

Date: 2021-07-07 09:01 pm (UTC)From: [personal profile] symbioid
symbioid: (Default)
It seems like maybe you're trying to read it as a list, not a dictionary (based on the above comment from iplokon) :

"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?

Profile

frenzy: (Default)
frenzy

January 2026

S M T W T F S
    123
456 78910
11121314151617
1819 2021222324
25262728293031
Page generated Jan. 22nd, 2026 07:41 pm
Powered by Dreamwidth Studios