func (o FindScriptDataOKBody) MarshalJSON() ([]byte, error) {
	_parts := make([][]byte, 0, 2)
	findScriptDataOKBodyAO0, err := swag.WriteJSON(o.SearchResult)
	if err != nil {
		return nil, err
	}
	_parts = append(_parts, findScriptDataOKBodyAO0)
	var dataFindScriptDataOKBodyAO1 struct {
		Data []*models.DataOutput `json:"data"`
	}
	dataFindScriptDataOKBodyAO1.Data = o.Data
	jsonDataFindScriptDataOKBodyAO1, errFindScriptDataOKBodyAO1 := swag.WriteJSON(dataFindScriptDataOKBodyAO1)
	if errFindScriptDataOKBodyAO1 != nil {
		return nil, errFindScriptDataOKBodyAO1
	}
	_parts = append(_parts, jsonDataFindScriptDataOKBodyAO1)
	return swag.ConcatJSON(_parts...), nil
}
MarshalJSON marshals this object to a JSON structure
package operations
import (
	"net/http"
	"strconv"
	errors "github.com/go-openapi/errors"
	middleware "github.com/go-openapi/runtime/middleware"
	strfmt "github.com/go-openapi/strfmt"
	swag "github.com/go-openapi/swag"
	models "github.com/MontFerret/ferret-server/server/http/api/models"
)
type FindScriptDataHandlerFunc func(FindScriptDataParams) middleware.Responder
func (fn FindScriptDataHandlerFunc) Handle(params FindScriptDataParams) middleware.Responder {
	return fn(params)
}
type FindScriptDataHandler interface {
	Handle(FindScriptDataParams) middleware.Responder
}
func NewFindScriptData(ctx *middleware.Context, handler FindScriptDataHandler) *FindScriptData {
	return &FindScriptData{Context: ctx, Handler: handler}
}
type FindScriptData struct {
	Context *middleware.Context
	Handler FindScriptDataHandler
}
func (o *FindScriptData) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
	route, rCtx, _ := o.Context.RouteInfo(r)
	if rCtx != nil {
		r = rCtx
	}
	var Params = NewFindScriptDataParams()
	if err := o.Context.BindValidRequest(r, route, &Params); err != nil {  
		o.Context.Respond(rw, r, route.Produces, route, err)
		return
	}
	res := o.Handler.Handle(Params)  
	o.Context.Respond(rw, r, route.Produces, route, res)
}
type FindScriptDataOKBody struct {
	models.SearchResult
	Data []*models.DataOutput `json:"data"`
}
func (o *FindScriptDataOKBody) UnmarshalJSON(raw []byte) error {
	var findScriptDataOKBodyAO0 models.SearchResult
	if err := swag.ReadJSON(raw, &findScriptDataOKBodyAO0); err != nil {
		return err
	}
	o.SearchResult = findScriptDataOKBodyAO0
	var dataFindScriptDataOKBodyAO1 struct {
		Data []*models.DataOutput `json:"data"`
	}
	if err := swag.ReadJSON(raw, &dataFindScriptDataOKBodyAO1); err != nil {
		return err
	}
	o.Data = dataFindScriptDataOKBodyAO1.Data
	return nil
}