miloyip / nativejson-benchmark

C/C++ JSON parser/generator benchmark
MIT License
1.95k stars 262 forks source link

Fix for ParseString / simdjson #133

Closed lemire closed 4 years ago

lemire commented 4 years ago

The original ParseString function in the simdjson code by @Mark407 would just grab the document and reserialize it. My fix would take the original document assume it was a string. Of course, the original documents are arrays containing a string. This new code should be more correct.