Added kafka json encoder