added getmessage.json endpoint.