Merge branch 'master' of github.com:yosuke-furukawa/gojson5
diff --git a/.travis.yml b/.travis.yml
index a7ec9bb..014b958 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,5 @@
 language: go
 go:
-  - 1.0
-  - 1.1
-  - 1.2
   - 1.3
   - tip
 
diff --git a/encoding/json5/decode.go b/encoding/json5/decode.go
index f70fbed..b7cd0ef 100644
--- a/encoding/json5/decode.go
+++ b/encoding/json5/decode.go
@@ -16,6 +16,7 @@
 	"reflect"
 	"runtime"
 	"strconv"
+	"strings"
 	"unicode"
 	"unicode/utf16"
 	"unicode/utf8"
@@ -535,6 +536,9 @@
 			}
 			key = k
 		}
+		if item[0] != '"' {
+			key = []byte(strings.Trim(string(key), " "))
+		}
 
 		// Figure out field corresponding to key.
 		var subv reflect.Value
@@ -879,6 +883,9 @@
 			}
 			key = k
 		}
+		if item[0] != '"' {
+			key = strings.Trim(key, " ")
+		}
 
 		// Read : before value.
 		if op == scanSkipSpace {