@niketnilay, thank you for such a thorough response. I will try your suggestions and provide an update along with an accepted answer if applicable.
What's interesting about the key and value being in the same quotes is that's how the JAVA library outputs the values. The following code sample is taken directly from the Java class that outputs the event data.
private static final Pattern DOUBLE_QUOTE = Pattern.compile("\"");
@Override
public String toString() {
StringBuilder output = new StringBuilder();
boolean first = true;
for (String key : entries.keySet()) {
if (!first) {
output.append(PAIRDELIM);
} else {
first = false;
}
String value = entries.get(key).toString();
// Escape any " that appear in the key or value.
key = DOUBLE_QUOTE.matcher(key).replaceAll("\\\\\"");
value = DOUBLE_QUOTE.matcher(value).replaceAll("\\\\\"");
output.append(QUOTE).append(key).append(KVDELIM).append(value).append(QUOTE);
}
return output.toString();
}
... View more