Added JsonWriterSettings to customize JSON writing