fixed extraction of json files