store data/doc.json by type