reading entities from json files