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, "AspirantesComentarios_id": 7, "Comentario":"another string", "Who":"you" } ]
Look I removed the when property and works you can see the images of the debugger here[ http://ibp.mx/lnk/attch/debug.jpg ]. so I thinks is something more about the date type or format, and been work before with this type but I dont't know why is saying "syntax error" thanks for the answer Luke and sorry for the format. On Jan 7, 3:54 am, Luke <kickingje...@gmail.com> wrote: > 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 {[{"Aspirante_id":37,"AspirantesComentarios_id": > 6,"Comentario":"asdfadsf","Who":"nahum","When":new > Date(1294268679000)}]} > > Also, please, format your code when you paste it. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.