JSON for messages and connected clients