Best way to JSON Python get all values for key? Need help! or How to JSON Python get all values for k

18 Replies, 1230 Views

Honestly, I just use `pandas` for this.

```python
import pandas as pd
df = pd.json_normalize(data, sep='_')
print(df.filter(like='a').values.flatten())
```
Might be overkill, but it's handy if you're already using pandas.

Messages In This Thread



Users browsing this thread: 1 Guest(s)