added json serialization to mock message producer/consumer