Json is the data set which contain key and value pair.
Example:
json_string = ["foo", {"bar":["baz", null, 1.0, 2]}]
print (json_string)
output: ["foo", {"bar":["baz", null, 1.0, 2]}]
Example:
json_string = ["foo", {"bar":["baz", null, 1.0, 2]}]
print (json_string)
output: ["foo", {"bar":["baz", null, 1.0, 2]}]
print (json.dumps(chain, indent=4, sort_keys=True))
output: [
"foo", { "bar": [ "baz", null, 1.0, 2 ] } ]
Comments
Post a Comment