Skip to content
Advertisement

how to decoding JSON file in python and get specific key

JavaScript

output is

JavaScript

but x’s type is str, how to get key,value from x ? i want to get only 858

Advertisement

Answer

You can use the built-in json module:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement