(This is an edit of the original question) "What's the difference between Python Dictionary and JSON?" "needed clarity" although for me it is very clear and logical! Anyway, here's an attempt to "improve" it ...
Is there any benefit in converting a Python dictionary to JSON, except for transferability between different platforms and languages? Look at the following example:
d = {'a':111, 'b':222, 'c':333}
print('Dictionary:', d)
j = json.dumps(d, indent=4)
print('JSON:\n%s' % j)
Output:
Dictionary: {'a': 111, 'b': 222, 'c': 333}
JSON:
{
"a": 111,
"b": 222,
"c": 333
}
They are almost identical. So, why should one use JSON?