Could you write me a script to load a JSON file in Python?
system
kya aap mujhe paythan main ek JSON fil lod karne ke liye ek script likh sakate hai?
user
paythan main JSON filon ko lod karne ke liye, aapako `JSON` modul aayaat karnaa hoga.

# JSON modul aayaat karen
aayaat JSON
  
# JSON fil kholen
json_file = Open ("file.json")
  
# ek shabdkosh ke rup main JSON fil ko lod karen
file_dict = json.load (json_file)

# shabdkosh print karen
print (file_dict)

# JSON fil band karen
json_file.close ()

code pehle `JSON` modul ko lod karata he taaki` open () `kaa upyog JSON fil ko ek object ke rup main kholane ke liye kiya ja sake.yadi JSON ek string he, to ise `.loads ()` ke saath ek shabdkosh main lod kiya ja saktaa he, "lod string" ke liye vaakyavinyas.haalaanki, yadi JSON ek bhi string nahin he, to `.load ()` kaa upyog kiya janaa chahie or JSON fil ke madhyam se punrarit kiya janaa chahie.

# JSON modul aayaat karen
aayaat JSON
  
# JSON fil kholen
json_file = Open ("file.json")
  
# ek shabdkosh ke rup main JSON fil ko lod karen
data = json.load (json_file)

# JSON data or print ke madhyam se iterate
data main main ["varg"]:
    print (i)

# JSON fil band karen
json_file.close ()

`For` loop JSON data par punrariti karegaa or shabdkosh main vaanchit varg kii prayek pankti ko print karegaa.placeolders ko aapke JSON fil naam or vaanchit varg ke liye anukulit kiya ja saktaa he.
assistant
<|system|>
</s>
<|user|>
kya aap mujhe paythan main ek JSON fil lod karne ke liye ek script likh sakate hai?</s>
<|assistant|>
paythan main JSON filon ko lod karne ke liye, aapako `JSON` modul aayaat karnaa hoga.

# JSON modul aayaat karen
aayaat JSON
  
# JSON fil kholen
json_file = Open ("file.json")
  
# ek shabdkosh ke rup main JSON fil ko lod karen
file_dict = json.load (json_file)

# shabdkosh print karen
print (file_dict)

# JSON fil band karen
json_file.close ()

code pehle `JSON` modul ko lod karata he taaki` open () `kaa upyog JSON fil ko ek object ke rup main kholane ke liye kiya ja sake.yadi JSON ek string he, to ise `.loads ()` ke saath ek shabdkosh main lod kiya ja saktaa he, "lod string" ke liye vaakyavinyas.haalaanki, yadi JSON ek bhi string nahin he, to `.load ()` kaa upyog kiya janaa chahie or JSON fil ke madhyam se punrarit kiya janaa chahie.

# JSON modul aayaat karen
aayaat JSON
  
# JSON fil kholen
json_file = Open ("file.json")
  
# ek shabdkosh ke rup main JSON fil ko lod karen
data = json.load (json_file)

# JSON data or print ke madhyam se iterate
data main main ["varg"]:
    print (i)

# JSON fil band karen
json_file.close ()

`For` loop JSON data par punrariti karegaa or shabdkosh main vaanchit varg kii prayek pankti ko print karegaa.placeolders ko aapke JSON fil naam or vaanchit varg ke liye anukulit kiya ja saktaa he.</s>
