ERT-712: Change ErtSocket to communicate with json.