Provide an option to disable JSON parsing
See original GitHub issueIn 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.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Disable JSON parsing in Axios - Stack Overflow
This works fine for everything except JSON files, which are automatically parsed and therefore not available as a String, but as a javascript ......
Read more >How to Disable JSON REST API in WordPress - WPBeginner
Disabling JSON REST API in WordPress with Code (Recommended) We recommend using the WPCode plugin to disable JSON REST API in WordPress. WPCode ......
Read more >How to Ignore Unknown Properties While Parsing JSON in ...
That's all about how to ignore unknown properties while parsing JSON in Java using Jackson API. You can do this either by using...
Read more >Parse JSon schema box is disable - Power Platform Community
Parse JSon schema box is disable. Reply. Topic Options ... into a SharePoint list using JSON but when I'm building the Parse JSON...
Read more >Options | Swagger Parser - API Dev Tools
To disable a parser, just set it to false . json.order yaml.order text.order binary.order, number, Parsers run in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I need to disable this as well. It’s for perf reasons. Also
mysql
package has this disabled (probably not implemented at all). Switching to mysql2 was not smooth for me because of this feature. I’d be happy to see option to disable thisYeah, here is what I settled on to get unblocked (in case anyone else finds it helpful):