Ok, got it. It's probably because it should use `ActiveSupport::JSON.dump` instead of `JSON.dump`.