process-data-standard-format-to-java-script-object-notation (Day-Helper-2025-07-01)

This commit is contained in:
2025-07-01 19:39:11 -07:00
parent fc4449f515
commit 0fb9663e6f
5 changed files with 189 additions and 3 deletions

View File

@ -71,7 +71,7 @@ internal static partial class Helper20250306 {
if (segments.Length != columnsLength)
continue;
for (int c = 1; c < segments.Length; c++) {
value = segments[c].Replace("\"", "\\\"").Replace("\\", "\\\\");
value = segments[c].Replace("\\", "\\\\").Replace("\"", "\\\"");
line += '"' + columns[c].Trim('"') + '"' + ':' + '"' + value + '"' + ',';
}
line = line.Substring(0, line.Length - 1) + '}' + ',' + '\n';