logo-MindMajix
PostPythonPython
v
veerubhotla sowmithri

Posted on 18th July 2024|13 views

0
votes

String To Json Python

What are the ways to convert string to a JSON object?

1 answers
Answers
P
Swetha Shetty

Posted on 18th July 2024| views

There are two different ways to convert string to JSON they are:

  1. We can change dict object to object of the string by using JSON.loads.
  2.  We can change string object to Object of dict by using eval().

 

Improve your knowledge in Python from scratch using Python Online Course.

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number