Remove index key before updating directly
Use snprintf and strncat in event_to_json