Home / Questions / Other JSON file directly पढ़ने का तरीका क्या है? — error आने पर developer क्या करे? Other 0 Views Verified JSON file directly पढ़ने का तरीका क्या है? — error आने पर developer क्या करे? #python #python programming #coding #developer Sarkari Result QA Bank Editorially reviewed exam information Share
Verified load.json('data.json') load.json('data.json') Additional Explanation यह विकल्प सही समाधान नहीं है।
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 पढ़ता है। पहले traceback की exact line और input value check करें।
Verified json.read_file('data.json') json.read_file('data.json') Additional Explanation यह विकल्प सही समाधान नहीं है।
Verified json.parse_file('data.json') json.parse_file('data.json') Additional Explanation यह विकल्प सही समाधान नहीं है।