Remove part of field name from json inputted fields

Inside the each_value loop, put another loop that iterates over the key/value pairs in value and copies them:

value.each_pair { |k, v|
  event[k] = v
}
1 Like