Closed
Description
Jorg Heymans opened SPR-14899 and commented
in application.properties i have
spring.jackson.serialization.indent_output=true
i then send a normal pojo object:
emitter.send(SseEmitter.event().data(pojo));
The jackson serializer config indents the output, and the result is sent as one dataline which is invalid:
data:{
"userId" : "myuser",
"objectId" : "s1"
}
in fact this should be
data: {\n
data: "userId" : "myuser",\n
data: "objectId" : "s1"\n
data: }\n\n
when i remove the indentation on the jackson serializer it's correct:
data: { "userId" : "myuser", "objectId" : "s1" }
Affects: 4.3.3
Issue Links:
- Spring MVC 4.3.5's Jackson auto-configuration breaks against Jackson 2.3.3 on the classpath [SPR-15051] #19617 Spring MVC 4.3.5's Jackson auto-configuration breaks against Jackson 2.3.3 on the classpath