parsing json from kafka and emitting it as protobuf