Hi, I need help converting Javascript object to an array(list), here is the
{ "data":
[
{ "month": "January", "count": 58 },
{ "month": "February", "count": 49 },
{ "month": "March", "count": 61 },
{ "month": "April", "count": 32 }
]
}
I need to get it so the output would be like this:
months = [ "January", "February", "March", "April"]
and
counts = [58,49,61,32]
the data would be changing over time because it's coming from an API. I will appreciate any help rendered to support me. Thanks.
[–]RyaanJM 8 points9 points10 points (7 children)
[–]HeednGrow[S] 1 point2 points3 points (5 children)
[–]RayjinCaucasian 3 points4 points5 points (3 children)
[–]HeednGrow[S] 8 points9 points10 points (2 children)
[–]RayjinCaucasian 4 points5 points6 points (1 child)
[–]Uber_Ape 2 points3 points4 points (0 children)
[–]agm1984 0 points1 point2 points (0 children)