Update the JSON handling in consumer.Consumer and add _initialize like docstring points out