I need to create a json file with data and store that file in specific directory of magento 2. Can any one please tell me how we can achieve this in magento2 in standard way like file system.
Please don't suggest PHP way as this might not be the standard way due to which magento will restrict module from uploading.
any help will be appreciated. thanks in advance