Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

serialize list to json python

import json

l = [1,2,3,4]
json_obj = json.dump(l)

# load from json obj
python_obj = json.load(json_obj)
print(python_obj) # [1,2,3,4]
 
PREVIOUS NEXT
Tagged: #serialize #list #json #python
ADD COMMENT
Topic
Name
5+7 =