LoginSignup
1

More than 5 years have passed since last update.

pythonでjsonデータの読み取り

Posted at
import json
#JSON ファイルの読み込み
f = open('sample.json', 'r')
data = json.load(f)
for i in data:
    print (i['hoge'])

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1