Wrap json event in buffer.