Skip to content

Instantly share code, notes, and snippets.

@bennlich
Created October 21, 2013 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennlich/7077284 to your computer and use it in GitHub Desktop.
Save bennlich/7077284 to your computer and use it in GitHub Desktop.
Possible CK data structures
// v1
{
birth_certificate: {
lat: 54,
lon: 22,
etc: etc
},
data: {
height: 4,
width: 2,
type: {
0: {
val: books,
date: 11/23/2013
},
1: {
val: antiques,
date: 11/23/1990
}
}
}
}
// v2
{
birth_certificate: {
lat: 54,
lon: 22,
etc: "etc"
},
data: {
height: 4,
width: 2,
type: books
},
history: {
type: {
0: {
val: books,
date: 11/23/2013
},
1: {
val: antiques,
date: 11/23/1990
}
}
}
}
// v3
{
birth_certificate: {
lat: 54,
lon: 22,
etc: "etc"
},
data: {
height: 4,
width: 2,
type: books
},
history: {
0: {
date: 11/23/2013,
data: {
type: books
}
},
1: {
date: 11/23/1990,
data: {
type: antiques
}
}
}
}
// v4
{
birth_certificate: {
lat: 54,
lon: 22,
etc: "etc"
},
data: {
height: 4,
width: 2,
type: books
},
history: {
type: some-history-id-for-the-type-field
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment