Skip to content

Commit

Permalink
Ensure json output copied from result grid is correctly quoted.pgadmi…
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshmahajan-1903 committed Dec 18, 2023
1 parent 75a1b4b commit e773187
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class CopyData {
stringQuoteCell(value, column) {
if (value && _.isObject(value)) {
value = this.CSVOptions.quote_char + JSONBigNumber.stringify(value) + this.CSVOptions.quote_char;
} else if (value && column.cell != 'number' && column.cell != 'boolean') {
} else if (value && column.cell != 'number' && column.cell != 'boolean' && column.cell != 'Json') {
value = this.CSVOptions.quote_char + this.escape(value.toString()) + this.CSVOptions.quote_char;
} else if (column.cell == 'string' && _.isNull(value)){
value = null;
Expand Down

0 comments on commit e773187

Please sign in to comment.