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

This commit is contained in:
2025-07-01 16:46:17 -07:00
parent fc4449f515
commit adf4f7bd3f
5 changed files with 187 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';