Skip to content

Instantly share code, notes, and snippets.

@theam
Created December 5, 2009 17:41
Show Gist options
  • Save theam/249771 to your computer and use it in GitHub Desktop.
Save theam/249771 to your computer and use it in GitHub Desktop.
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