A video explaining how to save data to nest Objects already saved on a JSON file. I start off with a blank JSON file and show you how to do this from the beginning.
If you want to solely see targeting the nested object skip to:
07:07 to see the function being created.
10:26 targeting the nested object.
Time Stamps:
00:00 - Intro
00:50 - Showing what I've got already set up
01:54 - Creating savePerson()
05:20 - Explaining savePerson()
06:03 - Testing savePerson()
07:07 - Function to save data to the nested object.
10:26 - Targeting the nested object.
12:37 - Testing savePet()
14:45 - Hitting the error I just explained to avoid!!