Closed
Description
In both binary_parser.js
and text_parser.js
we're parsing the JSON string to a native object:
case Types.JSON:
// Since for JSON columns mysql always returns charset 63 (BINARY),
// we have to handle it according to JSON specs and use "utf8",
// see https://github.com/sidorares/node-mysql2/issues/409
return 'JSON.parse(packet.readLengthCodedString("utf8"))';
Similarly to the configuration option dateStrings
, it would be nice to provide something like jsonStrings
which would avoid this and just return the utf8 string.
Metadata
Metadata
Assignees
Labels
No labels