I think that's OK, since it's just an example. Seems like it's a higher level module's problem to deal with the json chat message format.