It seems like JsonSerializer.SerializeObject object adds an extra backslash character for both carriage return/new line as shown on the image below (check the Watch window):