treeform / jsony

A loose, direct to object json parser with hooks.
MIT License
270 stars 34 forks source link

toJson should support DateTime fields #74

Closed jfilby closed 1 year ago

jfilby commented 1 year ago

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.

treeform commented 1 year ago

Hey, thank you for raising this issue!