remove newline from JSON output

This commit is contained in:
john30
2018-12-25 14:11:33 +01:00
parent 90eeb20466
commit d3e496ef6b
2 changed files with 17 additions and 17 deletions
+2 -2
View File
@@ -463,7 +463,7 @@ void SingleDataField::dumpPrefix(bool prependFieldSeparator, bool asJson, ostrea
if (prependFieldSeparator) {
*output << FIELD_SEPARATOR;
}
*output << "\n {";
*output << " {";
appendJson(false, "name", m_name, true, output);
} else {
dumpString(prependFieldSeparator, m_name, output);
@@ -538,7 +538,7 @@ result_t SingleDataField::read(const SymbolString& data, size_t offset,
*output << ",";
}
if (fieldIndex < 0 && !shortFormat) {
*output << "\n ";
*output << " ";
}
if (outputIndex >= 0 || m_name.empty() || !(outputFormat & OF_NAMES)) {
if (fieldIndex < 0) {