treeform/jsony

toJson should support DateTime fields

jfilby opened this issue · 1 comments

jfilby commented

There could be a parameter that accepts a format string. If this parameter isn't set and a DateTime field is encountered then raise an exception.

This would help to get rid of a lot of data structure wrangling in code that uses this library and uses DateTime fields.

Hey, thank you for raising this issue!