module ActiveSupport::Messages::SerializerWithFallback::JsonWithFallback

def _load(dumped)

def _load(dumped)
  ActiveSupport::JSON.decode(dumped)
end

def detect_format(dumped)

def detect_format(dumped)
  # Assume JSON format if format could not be determined.
  super || :json
end

def dump(object)

def dump(object)
  ActiveSupport::JSON.encode(object)
end

def dumped?(dumped)

def dumped?(dumped)
  JSON_START_WITH.match?(dumped)
end

def format

def format
  :json
end