@Test public void testSerializationWithoutTypeAttribute() throws IOException { serialize(); assertJsonIs("{\"helloWorld\":\"Hello, world\",\"lazy\":\"Lazy value\",\"resource\":\"/some/resource/path\",\"subModelProperty\":\"sub model property\"}"); }
void serialize(@Nonnull PrintWriter writer, @Nonnull Object model) throws IOException { this.jsonFactory .createGenerator(writer) .setCodec(this.mapper) .writeObject(model); }
Jackson2ModelSerializer { void serialize(@Nonnull PrintWriter writer, @Nonnull Object model) throws IOException { this.jsonFactory .createGenerator(writer) .setCodec(this.mapper) .writeObject(model); } }
Jackson2ModelSerializer { void serialize(@Nonnull PrintWriter writer, @Nonnull Object model) throws IOException { this.jsonFactory .createGenerator(writer) .setCodec(this.mapper) .writeObject(model); } Jackson2ModelSerializer(@Nonnull Supplier<Map<Object, Mapping<?>>> recordedMappingsSupplier, @Nonnull String[] jacksonConfigurations, boolean addTypeAttribute); }
Jackson2ModelSerializer { void serialize(@Nonnull PrintWriter writer, @Nonnull Object model) throws IOException { this.jsonFactory .createGenerator(writer) .setCodec(this.mapper) .writeObject(model); } Jackson2ModelSerializer(@Nonnull Supplier<Map<Object, Mapping<?>>> recordedMappingsSupplier, @Nonnull String[] jacksonConfigurations, boolean addTypeAttribute);  }
Jackson2ModelSerializer { void serialize(@Nonnull PrintWriter writer, @Nonnull Object model) throws IOException { this.jsonFactory .createGenerator(writer) .setCodec(this.mapper) .writeObject(model); } Jackson2ModelSerializer(@Nonnull Supplier<Map<Object, Mapping<?>>> recordedMappingsSupplier, @Nonnull String[] jacksonConfigurations, boolean addTypeAttribute);   }