func New() *Document {
	json := &Document{}
	if IncludeJSONAPIVersion {
		json.JSONAPI = &JSONAPI{
			Version: JSONAPIVersion,
		}
	}
	return json
}
/*
New instantiates a new JSON Document object.
package jsh
import (
	"encoding/json"
	"fmt"
	"net/http"
	"strings"
)
type DocumentMode int
const (
	ObjectMode DocumentMode = iota
	ListMode
	ErrorMode
)
var IncludeJSONAPIVersion = true
type JSONAPI struct {
	Version string `json:"version"`
}
type Document struct {
	Data List `json:"data"`
	Errors   ErrorList   `json:"errors,omitempty"`
	Links    *Links      `json:"links,omitempty"`
	Included []*Object   `json:"included,omitempty"`
	Meta     interface{} `json:"meta,omitempty"`
	JSONAPI  *JSONAPI    `json:"jsonapi,omitempty"`
	Status int `json:"-"`
	Mode DocumentMode `json:"-"`
	empty bool
	validated bool
}