A document in Couchbase Server consists of a unique
value and us stored
bucket. A document can be anything, but it
is recommended to use the JSON format. JSON is very convenient for
storing structured data with little overhead, and is also used
inside the View engine. This means that if you want to get most
out of Couchbase Server 2.0, use JSON.
The Java SDK doesn't come with a JSON library bundled and leaves
it up to you to choose your favorite one. If you are not sure
which one to use, the
library is a very good choice (and it's what we'll use in
later examples). You can download it directly (and include it in
CLASSPATH) or get it through Maven.
The following chapter introduces the basic operations that you can use as the fundamental building blocks of your application.