allow json encoder to be overwritten
Merge pull request #46 from bmdhacks/JsonGenerator

allow json encoder to be overwritten