Read and parse JSON in Python

visibility 113 access_time 8 months ago languageEnglish timeline Stats
timeline Stats
Page index 0.10

JSON is commonly used in modern applications for data storage and transfers. Pretty much all programming languages provide APIs to parse JSON. 

In Python, you can use json package to parse JSON. Function loads can be used to convert a string object to a JSON object.

Install the package via Pip:

pip install json

Code snippet

import json


json_obj = json.loads(jsonStr)
info Last modified by Raymond 8 months ago copyright This page is subject to Site terms.

Please log in or register to comment.

account_circle Log in person_add Register

Log in with external accounts

Read and Write Files via Python

More from Kontext
Get Seconds, Minutes and Hours from datetime
visibility 68
thumb_up 1
access_time 6 months ago
Python: Read Data from SQLite via JDBC
visibility 1,414
thumb_up 0
access_time 2 years ago