Added Generics to scrap JSON boilerplate