JSON file directly पढ़ने का तरीका क्या है? — interview में इसका सही जवाब क्या है?

Other Published Updated 0 Views Verified
JSON file directly पढ़ने का तरीका क्या है? — interview में इसका सही जवाब क्या है?
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

load.json('data.json')

load.json('data.json')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Sarkari Resultess
Editorial Answer 1
Verified Correct Answer

with open('data.json', encoding='utf-8') as f: data = json.load(f)

with open('data.json', encoding='utf-8') as f: data = json.load(f)
Additional Explanation
json.load file object से JSON पढ़ता है।
Sarkari Resultess
Editorial Answer 2
Verified

json.read_file('data.json')

json.read_file('data.json')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Sarkari Resultess
Editorial Answer 3
Verified

json.parse_file('data.json')

json.parse_file('data.json')
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Sarkari Resultess
Editorial Answer 4