func NewJSONConnection(connection Connection) *JSONConnection {
	return &JSONConnection{
		Name:    connection.Name(),
		Adaptor: reflect.TypeOf(connection).String(),
	}
}
NewJSONConnection returns a JSONConnection given a Connection.
package gobot
import (
	"fmt"
	"log"
	"reflect"
)
type JSONConnection struct {
	Name    string `json:"name"`
	Adaptor string `json:"adaptor"`
}