Arjen Poutsma Rossen Stoyanchev I have created an updated JsonObjectDecoder based on our DataBuffer instead of using Netty ByteBuf, see this branch for the code. This is the first working version, and the implementation still needs some polish and managing properly buffer release/retain, but I think this is a good basis for discussing various points.
Please notice that I fixed a bug in NettyDataBuffer#lastIndexOf() to make it works.
This JsonObjectDecoder implementation aggregates the multiple buffers thanks to DataBuffer#write(DataBuffer), creates a slice in order to identify the JSON objects start and end index without changing the original buffer read position, and then return each JSON object as a slice that will be processed by Jackson2JsonDecoder.
I think I need Arjen Poutsma feedback to understand how to manage release/retain in that use cases, where we use slices and where 2 decoders are processing the data together.