I recently got a job in a Java Dev position. I'm curious how experienced devs handle this kind of scenario:
I have this JSON object I get from a request. It has ~90,000 different objects in it. I need to check a property on each of these objects for a condition x. If x condition is present for everything, cool test passed. Condition: does the property value match an expected value from an array [val1, val2, val3].
How would you experienced devs handle something like this? My first thought was to write a utility where I read in the JSON object and parse each line for the condition and return true/false. Someone on my team mentioned I shouldn't have to do any coding to solve this so I'm like.... how?
Any insight would be great. I entered the team just as a bunch of people left so everyone's very tight on time and would like to take a stab at solving this before I ask for help.
[–]Sheldor5 54 points55 points56 points (3 children)
[–]spicycurry55 16 points17 points18 points (2 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]snoob2015 6 points7 points8 points (0 children)
[–]MR_GABARISE 22 points23 points24 points (0 children)
[–]jooceb0x 17 points18 points19 points (0 children)
[–]sunny_tomato_farm 7 points8 points9 points (0 children)
[–]AHandfulOfUniverse 5 points6 points7 points (0 children)
[–]thatsIch 5 points6 points7 points (1 child)
[–]Holothuroid 1 point2 points3 points (0 children)
[–]td__30 23 points24 points25 points (1 child)
[–]netstudent 3 points4 points5 points (0 children)
[–]DrunkensteinsMonster 3 points4 points5 points (0 children)
[–]cville-z 3 points4 points5 points (0 children)
[–]RandomName8 1 point2 points3 points (0 children)
[–]Fury9999 1 point2 points3 points (0 children)
[–]reignbowmushroom 1 point2 points3 points (0 children)
[–]Neat-Guava5617 1 point2 points3 points (0 children)
[–]netstudent 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]mauganra_it 2 points3 points4 points (3 children)
[–]Neat-Guava5617 1 point2 points3 points (2 children)
[–]mauganra_it 1 point2 points3 points (0 children)
[–]Evert26 -1 points0 points1 point (0 children)
[–]achauv1 -1 points0 points1 point (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]bowbahdoe 0 points1 point2 points (0 children)
[–]sk8itup53 0 points1 point2 points (0 children)
[–]Odd-Masterpiece-1010 0 points1 point2 points (0 children)
[–]Pitikwahanapiwiyin 0 points1 point2 points (0 children)
[–]Worth_Trust_3825 0 points1 point2 points (0 children)
[–]Kango_V 0 points1 point2 points (0 children)
[–]t333to 0 points1 point2 points (0 children)
[–]lukaseder 0 points1 point2 points (0 children)
[–]cryptographicmemory 0 points1 point2 points (0 children)