Created
December 5, 2009 17:41
-
-
Save theam/249771 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var anObject = { | |
field1: "Esto es un campo string", | |
field2: 1, /*Esto es un campo entero*/ | |
field3: 2.1, /*Esto es un campo float*/ | |
list: [1,2,3], /*En este campo hay una lista de números*/ | |
otraCosa: { /*Se permite anidar objetos*/ | |
algo: "Esto es anObject.otraCosa.algo" | |
}, | |
cosas: [ | |
{campo1: 2, campo2: "Se puede combinar todo para crear estructuras de datos complejas"}, | |
{campo1: "No hay reglas,.. Libertáaaa"} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment