Don't duplicate the join key in JSON tool output

This commit is contained in:
Eric Fischer
2017-10-10 17:51:16 -07:00
parent 894a0acc74
commit 9ebeb47d24
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ void join_csv(json_object *j) {
exit(EXIT_FAILURE);
}
for (size_t i = 0; i < fields.size(); i++) {
for (size_t i = 1; i < fields.size(); i++) {
std::string k = header[i];
std::string v = fields[i];
json_type attr_type = JSON_STRING;