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.