json parsers and message creators. Needs to be tested (unit-tested maybe?)