Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.2K
Views
Problema de análisis de JSON: 'S' es un carácter escapable no válido dentro de un JSON

Tengo el siguiente JSON en el archivo appsettings , tiene una cadena de conexión.

 { "Logging": { "LogLevel": { "Default": "Warning" } }, "ApplicationInsights": { "InstrumentationKey": "8eje88w0-1509-4ae0-b58c-1a7ee5b9c7e4" }, "ConnectionStrings": { "DefaultConnString": "Server=MYPC\SQLEXPRESS;Database=CoreService.Mark;Trusted_Connection=True;" }, "AllowedHosts": "*" }

Pero al ejecutar el programa, sigo recibiendo el siguiente error. Intenté encontrar algún error, pero no pude localizar ninguno.

 Unhandled exception. System.FormatException: Could not parse the JSON file. ---> System.Text.Json.JsonReaderException: 'S' is an invalid escapable character within a JSON string. The string should be correctly escaped. LineNumber: 10 | BytePositionInLine: 42
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

En sus cadenas de ConnectionStrings. DefaultConnString campo ConnectionStrings. DefaultConnString , está escapando S (antes SQLExpress; ). Como sugiere el error, no puedes hacer eso.

Puede solucionar esto agregando otro carácter de escape (barra invertida, \ ) delante del preexistente. Las barras invertidas son caracteres escapables y el resultado final será el deseado, obtendrá una barra invertida en esa posición.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!