Closed reidab closed 6 years ago
Given an object like
{ :a => 1, 'b' => 2 }
Generating JSON with sort: true fails with ArgumentError: comparison of Symbol with String failed. This can be worked around by setting sort: ->(k) { k.to_s }, but it seems like it should be handled by default.
sort: true
ArgumentError: comparison of Symbol with String failed
sort: ->(k) { k.to_s }
Thanks for the report! Fixed.
Given an object like
Generating JSON with
sort: true
fails withArgumentError: comparison of Symbol with String failed
. This can be worked around by settingsort: ->(k) { k.to_s }
, but it seems like it should be handled by default.