extact data to json files