error when parsing JSON - Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', 'got' undefined '

2

I have the following error:

 Error: Parse error on line 12:<br>
...0:00:00",    "title": "      LISTA DE TRABAJO<br> 
--------------------^<br>
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

At the moment of generating the next JSON:

[{
    "id": "905989",
    "resourceId": "203",
    "start": "2016-01-04T00:00:00",
    "end": "2016-01-04T00:00:00",
    "title": "Se agregó a la carta de término las observaciones referentes a la eliminación del candado del identificador MS, investigación de fundamento legal sobre multas y sanciones a considerar. "
}, {
    "id": "905990",
    "resourceId": "27",
    "start": "2016-01-04T00:00:00",
    "end": "2016-01-04T00:00:00",
    "title": "      LISTA DE TRABAJO DIARIO                                     HORA    CONCEPTO    DLLS    M.N EMPRESA #FACTURA    EMPRESA                                     abrir puertas diariamente                       limpieza de oficinas diariamente        test                        3 a 5               sanmarcos       10 a 12             saucillos       2 a 4   cheq            human resaurce      test10 a 12 cheq            baja tecnica        test12 a 1              compra de pastel        test10 a 12 cheq            dela    inventory   invemtory2 a 4              mueblex de b.c      test10 a 11 usb         draci sport     test11 a 12 recoger     usb         draci sport     test12 a 1  fact            femsa       test2 a 4   cheq            cresus      invemtory                                                                       "
}, {
    "id": "905991",
    "resourceId": "203",
    "start": "2016-01-04T00:00:00",
    "end": "2016-01-04T00:00:00",
    "title": "Junta con Evelyn, Carlos, Lorena y Vicente para determinar el procedimiento para actualizar las modificaciones de tarifa, anexo 22. Se acordó agendar una reunión con Benjamin, Jesús y Daniel para ver aspectos técnicos. Revisión, análisis de Anexo 22. "
}]

Why is the error and how can I fix it?

EDIT: At the moment of placing the JSON here (stackoverflow) and verifying it using JSONlint, it appears without error.

    
asked by CarlosOro 25.08.2016 в 21:59
source

1 answer

2

What could cause your error:

  

JSON - Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{',   '[', got 'undefined'

is that you are using the character in your .json instead of double quotes that would be " , They could also be non-printable characters in the spaces.

In the .json that you add in your question there is no problem.

Check the value of "title" in the second element, you could have something like this:

 "title": “      LISTA DE TRABAJO DIARIO                                     HORA    CONCEPTO    DLLS    M.N EMPRESA #FACTURA    EMPRESA                                     abrir puertas diariamente                       limpieza de oficinas diariamente        test                        3 a 5               sanmarcos       10 a 12             saucillos       2 a 4   cheq            human resaurce      test10 a 12 cheq            baja tecnica        test12 a 1              compra de pastel        test10 a 12 cheq            dela    inventory   invemtory2 a 4              mueblex de b.c      test10 a 11 usb         draci sport     test11 a 12 recoger     usb         draci sport     test12 a 1  fact            femsa       test2 a 4   cheq            cresus      invemtory                                                                       ”,
    
answered by 25.08.2016 в 22:07