for (BucketKeyInput.IndividualInput i : input.getInputs())
{
jg.writeStartArray();
Location loc = i.location;
jg.writeString(loc.getNamespace().getBucketNameAsString());
jg.writeString(loc.getKeyAsString());
jg.writeObject(i.keyData);
// TODO: Remove this when bug in Riak is fixed.
// There's a bug in Riak where if you explicitly specify
// "default" with the 4 argument version of input, it
// blows up.
if (!loc.getNamespace().getBucketTypeAsString().equals(Namespace.DEFAULT_BUCKET_TYPE))
{
jg.writeString(loc.getNamespace().getBucketTypeAsString());
}
jg.writeEndArray();
}