Writing JSON data to a JSON file
问题 Hello in my application I am currently trying to create my own custom log files in .json format. Reason for this is because I want a well structured and accurate log file which can be easily read and would not depend on some special code in my application to read the data. I have been able to create a json file: activities.json I have been able to write and append to that file using File::append($path, $json) This is a sample of the file contents: {"controller":"TestController","function":