made CSV codec use JSON encoder for values to support complex objects