Answer the question
In order to leave comments, you need to log in
How to import python object to JSON and vice versa?
class AAA:
pass
a = AAA
import json
j = str(AAA())
json_j = json.dumps(j, indent=4)
with open('file.json', 'w') as f:
json.dump(j, f, indent=4)
with open("file.json", "r") as f:
data_again = json.load(f)
f.close()
Answer the question
In order to leave comments, you need to log in
And it doesn't have to be taken literally. At you through a template input and span is created. You can see them in your layout. And ul is already created after using some select2 with ajax loading.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question