fix: serialize array correctly

This commit is contained in:
ToruNiina 2019-06-18 01:27:52 +09:00
parent 262f9c5fcc
commit 32d5c9e924

View File

@ -333,6 +333,11 @@ struct serializer
current_line += ',';
}
}
if(!current_line.empty())
{
if(current_line.back() != '\n') {current_line += '\n';}
token += current_line;
}
token += "]\n";
return token;
}