Allow changing wrap and quotes options when using json option

json option implies wrap and double quotes in addition to changing some escaping behavior. This change allows the quote and wrap options to be changed while still allowing json option to be used. This is especially useful when you need to escape a string that is embedded in a JSON field.