code: public JsonObject export() {
          JsonObject result = JsonObject.create();
          for (MutationToken token : tokens) {
              JsonObject bucket = result.getObject(token.bucket());
              if (bucket == null) {
                  bucket = JsonObject.create();
                  result.put(token.bucket(), bucket);
              }
  
              bucket.put(
                  String.valueOf(token.vbucketID()),
                  JsonArray.from(token.sequenceNumber(), String.valueOf(token.vbucketUUID()))
              );
          }
          return result;
      }
docs: Exports the {@link MutationState} into a universal format, which can be used either to serialize it into
  a N1QL query or to send it over the network to a different application/SDK.
  
  @return the exported {@link JsonObject}.