I have a web API that returns python dictionaries or lists as an answer, which I use eval () in python scripts that use the API, for completeness I wanted to set the correct content type, but not sure if it would be better to use " text / x-python "or maybe" application / python "or something else?
[edit] I also output JSON, I make Python as an option, mainly for internal use. [/ edit]
Raysl source
share