B
Burton Samograd
Hello,
I was wondering if there was a way to change the quote character for
keys in string representation of dictionaries, so that they will be JSON
equivalent. For example:
'{ "x": 1, "y": 2 }' # JSON and python compatible
So the question is, is there an automatic way to tell python to use "
instead of ' when doing a repr of lists?
Thanks.
I was wondering if there was a way to change the quote character for
keys in string representation of dictionaries, so that they will be JSON
equivalent. For example:
'{ "x": 1, "y": 2 }' # JSON and python compatible
So the question is, is there an automatic way to tell python to use "
instead of ' when doing a repr of lists?
Thanks.