manage json object serialization via a pyramid json renderer