func NewJSONServer(service HttpService) *JsonRpcServer {
	return &JsonRpcServer{service: service}
}
Create a new JsonRpcServer
package rpc
import (
	"context"
	"encoding/json"
	"net/http"
	rpcConfig "github.com/gallactic/gallactic/rpc/config"
	"github.com/gin-gonic/gin"
	log "github.com/inconshreveable/log15"
)
type JsonRpcServer struct {
	service HttpService
	running bool
}