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 / crowder software / com
On Jan 7, 9:54 am, Luke <[email protected]> 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.