ruby/ext/json/generator
Jean Boussier ef5565f5d1 JSON.generate: call to_json on String subclasses
Fix: https://github.com/ruby/json/issues/667

This is yet another behavior on which the various implementations
differed, but the C implementation used to call `to_json` on String
subclasses used as keys.

This was optimized out in e125072130229e54a651f7b11d7d5a782ae7fb65
but there is an Active Support test case for it, so it's best to
make all 3 implementation respect this behavior.
2024-11-01 13:04:24 +09:00
..
depend ruby tool/update-deps --fix 2024-04-27 21:55:28 +09:00
extconf.rb [ruby/json] Compile with std=c99 2024-10-26 18:44:15 +09:00
generator.c JSON.generate: call to_json on String subclasses 2024-11-01 13:04:24 +09:00
generator.h Elide Generator::State allocation until a to_json method has to be called 2024-11-01 13:04:24 +09:00