diff --git a/json_utility.go b/json_utility.go index 3edf694..00a446d 100644 --- a/json_utility.go +++ b/json_utility.go @@ -175,3 +175,6 @@ func fetchJSON(db *ora.Ses, project string) ([]byte, error) { return bytes, nil } +func DecodeJSON(r io.Reader, v interface{}) error { + return json.NewDecoder(r).Decode(v) +}