Get and write all code from a json file
Level: Intermediate (score: 3)
You are given a sample JSON file containing, among other things, PyBites code for two bites.
Your task is to complete the function to extract the code from the JSON file for each bite and write the code to a file, one file for each bite. The code will be in the "passing_code" key. See the docstring for more information.
With successful code you will then be able to use it to get and save all of your own passing PyBites code (which can be found under Settings).
See my_code.json for the sample JSON file contents and structure. The test file shows the expected code output.