The __json__ function should accept a request argument

Pyramid allows it.  This is so automatic code like sqlalchemy_traversal can use
it's __json__ if needed.