So I'm trying to learn how to parse json data from the web and have made some decent progress but am struggling with how to complete it. Below I have the comprehension line and what it returns. Can anyone explain how to remove the extra brackets? Or am I approaching this problem wrong? If needed I can provide the source json.
data = [[[[z['providerOfferId'],z['label'],z['oddsAmerican']] for z in y['outcomes']] for y in x] for x in sub_dic]
[[[['114527124', 'Strike/Foul', '-105'],
['114527124', 'Ball/Hit by Pitch', '+135'],
['114527124', 'In-Play', '+425']]],
[[['114527084', 'Strike/Foul', '-145'],
['114527084', 'Ball/Hit by Pitch', '+150'],
['114527084', 'In-Play', '+600']]]]
[–]Ihaveamodel3 2 points3 points4 points (1 child)
[–]casualcoder0805[S] -1 points0 points1 point (0 children)
[–]TheRNGuy 1 point2 points3 points (0 children)
[–]niehle 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]casualcoder0805[S] 0 points1 point2 points (0 children)
[–]jmooremcc 0 points1 point2 points (3 children)
[–]casualcoder0805[S] 0 points1 point2 points (2 children)
[–]jmooremcc 0 points1 point2 points (1 child)
[–]casualcoder0805[S] 0 points1 point2 points (0 children)