top of page
Difference between json.dumps() and json.loads()
JSON is important for many backend devs. But sometimes playing with it can be confusing. Being a backend dev or full stack dev you might have written APIs for your Web or Mobile application and I’m sure you might have come across json.dumps() and json.loads(). Let’s understand the difference between json.dumps() and json.loads() with an example. json.dumps() import json user_details_dict = { "first_name": "Chandan", "last_name": "Rajpurohit" } user_details_string = """{ "fi
Chandan Rajpurohit
Jan 19, 20242 min read
bottom of page