Add optional parameter to coerce number and null types out of strings when generating JSON