Service for encoding and decoding json messages used to communicate with the client.