anilmaurya / fast_jsonparser

Fastest Json parser for Ruby, wrapper for simdjson
MIT License
306 stars 10 forks source link

Symbolize names option #9

Closed casperisfine closed 4 years ago

casperisfine commented 4 years ago

Based on https://github.com/anilmaurya/fast_jsonparser/pull/8 for UTF-8 support.

As discussed in the other PRs, while looking up symbols is faster, most parsers out there us strings as keys. So if fast_jsonparser is to be used as a replacement for existing parsers, symbol only keys is really not practical.

I chose to make that option default to true as it's the current behavior, but IMHO it should default to false.

anilmaurya commented 4 years ago

Make sense when replacing existing parser 👍