code: protected void serializeObject( JsonWriter writer, T value, JsonSerializationContext ctx, Set<String> ignoredProperties,
                                      IdentitySerializationInfo identityInfo, ObjectIdSerializer<?> idWriter, String typeName, String
              typeInformation ) {
          writer.beginObject();
  
          if ( null != typeName && null != typeInformation ) {
              writer.name( typeName );
              writer.value( typeInformation );
          }
  
          if ( null != idWriter ) {
              writer.name( identityInfo.getPropertyName() );
              idWriter.serializeId( writer, ctx );
          }
  
          serializeProperties( writer, value, ctx, ignoredProperties, identityInfo );
  
          writer.endObject();
      }
docs: Serializes all the properties of the bean in a json object.
  
  @param writer writer
  @param value bean to serialize
  @param ctx context of the serialization process
  @param ignoredProperties ignored properties
  @param identityInfo identity info
  @param idWriter identifier writer
  @param typeName in case of type info as property, the name of the property
  @param typeInformation in case of type info as property, the type information