Hi,
> ...I getting "Error sintax" but If
> I remove the When Value with the date the evalJSON works without any
> problem does any know why is this...
Because you're giving invalid JSON. (JSONLint.com is useful for
checking.) JSON has no `new` operator, and no concept of `Date`s:
http://json.org
Hi,
> Afaik a JSON-Object (or string) must be wrapped in {}. What you have is an
> array (your string's wrapped with [ ]). Try:
No, that's fine. Both object and array are valid top-level objects:
http://json.org/
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crow
I don't think that is the reason because actually is an array of
objects and without the "When" properties works, Im mean if you do
something like
[
{"Aspirante_id":37,
"AspirantesComentarios_id": 6,
"Comentario":"asdfadsf",
"Who":"nahum"
},
{"Aspirante_id":38,
Afaik a JSON-Object (or string) must be wrapped in {}. What you have is an
array (your string's wrapped with [ ]). Try:
{
[
{"Aspirante_id":37,
"AspirantesComentarios_id": 6,
"Comentario":"asdfadsf",
"Who":"nahum",
"When": new Date(1294268679000)
}
]
}
or {[{