Golang json decoding returns empty : <p>Can some one please explain to me why this code fail to decode json properly: </p>

<pre><code>package main
import (
    "fmt"
    "os"
    "log"
    "encoding/json"
)

type Config struct {
    mongoConnectionString string `json:"database"`
    Elastic struct{
        main string `json:"main"`
        log string `json:"log"`
    } `json:"elastic"`
    logFilePath  string `json:"logfile"`
}


func main(){ 
    loadConfiguration("./config.json")
}

func loadConfiguration(file string){
    var configuration Config

    configFile, err := os.Open(file); if err != nil {
        log.Panic("Could not open", file)
    }
    defer configFile.Close()

    if err := json.NewDecoder(configFile).Decode(&amp;configuration); err != nil {
            log.Panic("./config.json is currupted")
    }

    fmt.Print(configuration.logFilePath)
}
</code></pre>

<p>Json data:</p>

<pre><code>{
  "database": "localhost",
  "elastic": {
    "main": "test",
    "log": "test"
  },
  "logfile": "./logs/log.log"
}
</code></pre>

<p>The execution of this program will result in empty configuration.logFilePath</p>

<p>What am i missing? </p>

<p>Thanks</p>
