So currently I'm working on a project that requires the use of PHP and JSON. The way I have currently set up my code is so that I read the JSON file in using file_get_contents and then use the built in json_decode() function. Everything is reading perfectly, it's the writing part that is giving me trouble.So currently I'm working on a project that requ