add dumps_function hook to JSONRenderer