func (c *Config) GetMap(key string) map[string]interface{} {
	result, present := c.data[key]
	if !present {
		return map[string]interface{}(nil)
	}
	return result.(map[string]interface{})
}
Returns an map for the config variable key
package jconfig  
import (
	"bytes"
	"encoding/json"
	"log"
	"os"
)
type Config struct {
	data     map[string]interface{}
	filename string
}
func newConfig() *Config {
	result := new(Config)
	result.data = make(map[string]interface{})
	return result
}
func LoadConfig(filename string) *Config {
	result := newConfig()
	result.filename = filename
	err := result.parse()
	if err != nil {
		log.Fatalf("error loading config file %s: %s", filename, err)
	}
	return result
}
func LoadConfigString(s string) *Config {
	result := newConfig()
	err := json.Unmarshal([]byte(s), &result.data)
	if err != nil {
		log.Fatalf("error parsing config string %s: %s", s, err)
	}
	return result
}
func (c *Config) StringMerge(s string) {
	next := LoadConfigString(s)
	c.merge(next.data)
}
func (c *Config) LoadMerge(filename string) {
	next := LoadConfig(filename)
	c.merge(next.data)
}
func (c *Config) merge(ndata map[string]interface{}) {
	for k, v := range ndata {
		c.data[k] = v
	}
}
func (c *Config) parse() error {
	f, err := os.Open(c.filename)
	if err != nil {
		return err
	}
	defer f.Close()
	b := new(bytes.Buffer)
	_, err = b.ReadFrom(f)
	if err != nil {
		return err
	}
	err = json.Unmarshal(b.Bytes(), &c.data)
	if err != nil {
		return err
	}
	return nil
}
func (c *Config) GetString(key string) string {
	result, present := c.data[key]
	if !present {
		return ""
	}
	return result.(string)
}
func (c *Config) GetInt(key string) int {
	x, ok := c.data[key]
	if !ok {
		return -1
	}
	return int(x.(float64))
}
func (c *Config) GetFloat(key string) float64 {
	x, ok := c.data[key]
	if !ok {
		return -1
	}
	return x.(float64)
}
func (c *Config) GetBool(key string) bool {
	x, ok := c.data[key]
	if !ok {
		return false
	}
	return x.(bool)
}
func (c *Config) GetArray(key string) []interface{} {
	result, present := c.data[key]
	if !present {
		return []interface{}(nil)
	}
	return result.([]interface{})
}