do not echo message any more, and expect message to be a valid json and
print a expected key, value
handle invalid json by catching an exception