code: private static JsonElement getJsonObject(Field[] declaredFields, EmbeddableType embeddableType,
              Object embeddedObject)
      {
          JsonObject jsonObject = new JsonObject();
          for (Field field : declaredFields)
          {
  
              if (!ReflectUtils.isTransientOrStatic(field)
                      && !embeddableType.getAttribute(field.getName()).isAssociation())
              {
                  Object valueObject = PropertyAccessorHelper.getObject(embeddedObject, field);
                  jsonObject.add(((AbstractAttribute) (embeddableType.getAttribute(field.getName()))).getJPAColumnName(),
                          getJsonPrimitive(valueObject, embeddableType.getAttribute(field.getName()).getJavaType()));
              }
          }
          return jsonObject;
      }
docs: Gets the json object.
  
  @param declaredFields
  the declared fields
  @param embeddableType
  the embeddable type
  @param embeddedObject
  the embedded object
  @return the json object