func PopulateDropTable(dropJSON string) error {
	jsonFile, err := os.Open(dropJSON)
	if err != nil {
		return fmt.Errorf(err.Error())
	}
	defer jsonFile.Close()
	jsonBytes, _ := ioutil.ReadAll(jsonFile)
	json.Unmarshal(jsonBytes, &dropTable)
	return nil
}
PopulateDropTable from json file
package channel
import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"math"
	"math/rand"
	"os"
	"time"
	"github.com/Hucaru/Valhalla/common"
	"github.com/Hucaru/Valhalla/constant"
	"github.com/Hucaru/Valhalla/mpacket"
	"github.com/Hucaru/Valhalla/nx"
	"github.com/google/uuid"
)
type dropTableEntry struct {
	IsMesos bool  `json:"isMesos"`
	ItemID  int32 `json:"itemId"`
	Min     int32 `json:"min"`
	Max     int32 `json:"max"`
	QuestID int32 `json:"questId"`  
	Chance  int32 `json:"chance"`
}
var dropTable map[int32][]dropTableEntry