Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

write json pythonb

>>> jstr = json.dumps(data, ensure_ascii=False, indent=4)
>>> print(jstr)
{
    "item": "Beer",
    "cost": "£4.00"
}
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #write #json #pythonb
ADD COMMENT
Topic
Name
5+8 =