diff --git a/datasource/datasource.go b/datasource/datasource.go index 8daedb6e..e75d8f44 100644 --- a/datasource/datasource.go +++ b/datasource/datasource.go @@ -181,7 +181,7 @@ func AnalyzeGitHubContent(dsn config.DSN) (*schema.Schema, error) { if err != nil { return nil, errors.WithStack(err) } - dec := json.NewDecoder(strings.NewReader(string(b))) + dec := json.NewDecoder(bytes.NewReader(b)) if err := dec.Decode(s); err != nil { return s, errors.WithStack(err) }