Convert socket service to use JSON transport protocol