all Kafka message retrieval functions now support JSON output
updated examples to include JSON output and complex queries