module Puma::JSONSerialization
def serialize_object_key(output, value)
def serialize_object_key(output, value) case value when Symbol, String serialize_string output, value.to_s else raise SerializationError, "Could not serialize object of type #{value.class} as object key" end end