SarkariResultess QA Bank

JSON string को Python object में कैसे parse करते हैं? — error आने पर developer क्या करे?

Other 0 Views Verified
JSON string को Python object में कैसे parse करते हैं? — error आने पर developer क्या करे?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
Verified

json.parse(text)

json.parse(text)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified Correct Answer

json.loads(text)

json.loads(text)
Additional Explanation
json.loads JSON string को Python object में बदलता है। पहले traceback की exact line और input value check करें।
Verified

JSON.loads(text)

JSON.loads(text)
Additional Explanation
यह विकल्प सही समाधान नहीं है।
Verified

json.decode(text)

json.decode(text)
Additional Explanation
यह विकल्प सही समाधान नहीं है।