parse json in consumer