code: private static JsonObject getJsonObject(Set<Attribute> columns, Object object)
      {
          JsonObject jsonObject = new JsonObject();
          for (Attribute column : columns)
          {
              if (!column.isAssociation())
              {
                  Object valueObject = PropertyAccessorHelper.getObject(object, (Field) column.getJavaMember());
                  jsonObject.add(((AbstractAttribute) column).getJPAColumnName(),
                          getJsonPrimitive(valueObject, column.getJavaType()));
              }
          }
          return jsonObject;
      }
docs: Gets the json object.
  
  @param columns
  the columns
  @param object
  the object
  @return the json object