Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • Beautiful! Once again, proof that sometimes you don't need a fat package for every stupid little task--that learning DSL can be harder than doing it the "hard" way. I looked at many many JSON and REST packages before landing here. True, this still requires a package, flask_jsontools (to add @jsonapi to @app.route in views.py etc), but I love the simplicity of it. I think it is cheap Flask added datetime but not date so I added it myself to json_encoder.py: value=...^if isinstance(value, date):^data[field] = datetime.combine(value, time.min).isoformat()^else:^try:... Commented Feb 14, 2016 at 2:52