Why is json.loads() returning a string? Here's is my code:
import json
d = """{
"reference": "123432",
"business_date": "2019-06-18",
"final_price": 40,
"products": [
{
"quantity": 4,
"original_price": 10,
"final_price": 40,
}
]
}"""
j = json.loads(json.dumps(d))
print(type(j))
Output:
<class 'str'>
Shouldn't it returning a json object? What change is required here?