diff --git a/.gitignore b/.gitignore
index 59a859453319fd9351a944ab89b4edd236cd2638..5dacf122147b9afd66b06f306a63e92ee2493199 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
 /pjls
-/config
+/config.json
diff --git a/cmd/pjls/pjls.go b/cmd/pjls/pjls.go
index 42fef67cb1df1dde942a6ff963e466b46c6e0598..f594c53f8e6cda3191ad4c53eac02d24cbc80b6d 100644
--- a/cmd/pjls/pjls.go
+++ b/cmd/pjls/pjls.go
@@ -16,8 +16,10 @@ func main() {
 
 	viper.SetConfigName("config")
 	viper.AddConfigPath(".")
+	viper.SetConfigType("json")
 	err := viper.ReadInConfig()
-	viper.Unmarshal(&c)
+	c.token = viper.Get("token")
+	c.baseurl = viper.Get("baseurl")
 
 	if err != nil {
 		panic(fmt.Errorf("Fatal error config file: %s \n", err))