Slide 21
Slide 21 text
21
User
Object
string
uid
string
firstname
string
lastname
int
age
array
favorite_colors
string
email
u::foo@couchbase.com
{
“uid”:
1234,
“firstname”:
“Foo”,
“lastname”:
“Bar”,
“age”:
22,
“favorite_colors”:
[“green”,
“red”],
“email”:
“foo@couchbase.com”
}
User
Object
string
uid
string
firstname
string
lastname
int
age
array
favorite_colors
string
email
set()
get()
Objects
Serialized
to
JSON
and
Back
u::foo@couchbase.com
{
“uid”:
1234,
“firstname”:
“Foo”,
“lastname”:
“Bar”,
“age”:
22,
“favorite_colors”:
[“green”,
“red”],
“email”:
“foo@couchbase.com”
}