'Extracting values from a specific key in a json
I have this JSON:
{"eletrics":{"USA":['trcd', 'moty', 'pily'], "EUROPE" :['bny','ury','try']}, "fuel":{"USA":['tre', 'motr', 'pilow'], "EUROPE" :['bty','tryn','tre']}}
How can I extract all strings in the key==EUROPE
The outuput should be:
europe = ['bny','ury','try','bty','tryn','tre']
in python I would do:
df = df.loc["EUROPE"].explode()
How can I do this in Julia:
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
