BorisMoore/jsrender — Issue #50: No way of rendering enumerated objects
Author: rodryquintero
Created: 2011-12-18 20:16:53+00:00
State: open

Sometimes you get an JSON object like this (copied from firebug):

link	[Object { title="Inicio", url=""}, Object { title="Ciudad", url="ciudad.php", sublink=[11]}, Object { title="Tramites", url="#"}, 3
0	Object { title="Inicio", url=""}
1	Object { title="Ciudad", url="ciudad.php", sublink=[11]}
2	Object { title="Tramites", url="#"}
3	Object { title="Noticias", url="#"}
4	Object { title="Calendario", url="#"}
5	Object { title="Sobre Nosotros", url="#"}

Where you get an index for an object instead of the object itself. In order to access the properties of the object, you need to reference this index.

I dont know if there is a way to get the length of the object and iterate it.

What are your comments.