rapidjson-ruby
rapidjson-ruby copied to clipboard
A fast JSON library for Ruby
We should be able to support this via RapidJSON's `SetIndent` https://rapidjson.org/classrapidjson_1_1_pretty_writer.html#a121686c29ca7fe071fa4108c46955ff0
The capacity of handling arbitrary size integers is quite important to be able to replace the stdlib library. Unfortunately RapidJSON isn't very flexible here. For generating JSON it's quite easy...
WIP It's faster to buffer items in a (C) array before creating a hash from them. Partly because this avoids the cost in Ruby of building a `ar_table` before it...
Wanted to try this gem, but can't make drop-in replacement without this option. Like `symbolize_names: true` in JSON or `symbol_keys: true` in Oj.