相关文章推荐
激动的单车  ·  模拟器运行报错: ...·  1 年前    · 
任性的砖头  ·  ASP.NET ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Now I want to get all values of a specific key in a list, in this simple example for the key "Y" , the list should look like this: [2, 5, 8]

What's the easiest way to achieve this in Python?

Is the structre of the JSON always like this (the desired keys in the "2nd level"?) Or can it be that "Y" appears alongside "A" and "B"? or inside "X"? Jan Stránský Aug 22, 2020 at 9:34

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .