code: public String getAttributesAsJsonString() {
          if (attributes == null) {
              return "null";
          }
          Lock lock = lockForRead();
          try {
              return SerializationUtils.toJsonString(attributes);
          } finally {
              lock.unlock();
          }
      }
docs: Get all BO's attributes as a JSON-string.
  
  @return
  @since 0.10.0