func ParseJSON(in io.Reader) ([]Vuln, error) {
	feed, err := getFeed(in)
	if err != nil {
		return nil, fmt.Errorf("cvefeed.ParseJSON: %v", err)
	}
	vulns := make([]Vuln, 0, len(feed.CVEItems))
	for _, cve := range feed.CVEItems {
		if cve != nil && cve.Configurations != nil {
			vulns = append(vulns, nvd.ToVuln(cve))
		}
	}
	return vulns, nil
}
ParseJSON parses JSON dictionary from NVD vulnerability feed
package cvefeed
import (
	"bufio"
	"compress/bzip2"
	"compress/gzip"
	"encoding/json"
	"fmt"
	"io"
	"io/ioutil"
	"github.com/facebookincubator/nvdtools/cvefeed/nvd"
	"github.com/facebookincubator/nvdtools/cvefeed/nvd/schema"
)