parsing json messages

parsing json messages  to extract commands and various headers.
first Draft