marrow / WebCore

WebCore, the super tiny and blazingly fast modular Python web nanoframework.
MIT License
96 stars 9 forks source link

Serialization extension. #172

Closed amcgregor closed 8 years ago

amcgregor commented 8 years ago

An extension to support the automatic serialization of basic lists and mappings returned by endpoints. Should support JSON and YAML (the latter only if the yaml support library is installed) using content negotiation to decide which format to use.

No matching format should probably cascade out of the view registered by the extension to allow other views to give it a try. (Or make that configurable, i.e. strict.)

Include tests.

amcgregor commented 8 years ago

Configurable default is in, customizable return type handling is in, and plugin use is in.