func JSONSpec(path string, options ...LoaderOption) (*Document, error) {
	data, err := JSONDoc(path)
	if err != nil {
		return nil, err
	}
	return Analyzed(data, "", options...)
}
JSONSpec loads a spec from a json document
package loads
import (
	"bytes"
	"encoding/gob"
	"encoding/json"
	"fmt"
	"github.com/go-openapi/analysis"
	"github.com/go-openapi/spec"
	"github.com/go-openapi/swag"
)
func init() {
	gob.Register(map[string]interface{}{})
	gob.Register([]interface{}{})
}
type Document struct {
	Analyzer     *analysis.Spec
	spec         *spec.Swagger
	specFilePath string
	origSpec     *spec.Swagger
	schema       *spec.Schema
	raw          json.RawMessage
	pathLoader   *loader
}