Fix transit tests

This commit is contained in:
vishalnayak 2016-07-06 20:38:17 -04:00
parent 98fca2a31a
commit db3670c353
1 changed files with 1 additions and 3 deletions

View File

@ -43,13 +43,11 @@ func (kem KeyEntryMap) MarshalJSON() ([]byte, error) {
}
// MarshalJSON implements JSON unmarshaling
func (kem KeyEntryMap) DecodeJSON(data []byte) error {
func (kem KeyEntryMap) UnmarshalJSON(data []byte) error {
intermediate := map[string]KeyEntry{}
if err := jsonutil.DecodeJSON(data, &intermediate); err != nil {
return err
}
for k, v := range intermediate {
keyval, err := strconv.Atoi(k)
if err != nil {