What is the recommended way of serializing a namedtuple to json with the field names retained?
Serializing a namedtuple to json results in only the valu
namedtuple
simplejson.dump() instead of json.dump does the job. It may be slower though.
simplejson.dump()
json.dump