Add option to allow custom json_dumps callable

My proposed solution for Issue #1