Made use of common JSON/Encoding function.

This commit is contained in:
Adrian Gallagher
2015-03-28 18:30:24 +11:00
parent d6bc9adc9e
commit f862eada83
6 changed files with 7 additions and 13 deletions

View File

@@ -6,7 +6,6 @@ import (
"errors"
"strings"
"time"
"encoding/json"
"log"
)
@@ -275,7 +274,7 @@ func (i *ItBit) SendAuthenticatedHTTPRequest(method string, path string, params
}
}
PayloadJson, err := json.Marshal(request)
PayloadJson, err := JSONEncode(request)
if err != nil {
return errors.New("SendAuthenticatedHTTPRequest: Unable to JSON Marshal request")