Difference between JSONEncoder/Decoder and PropertyListEncoder/Decoder?

Hi all,


I am relatively new to the developer community (started with the Intro to App Development with Swift course a few months ago and now on Lesson 4.8 of App Development wiht Swift Course- all self guided).


After completing a lesson in this course, I was a bit confused on how to properly save data for my app. I think my confusion is arising from the basic difference between using JSON and PropertyList. What is the difference? When do I use each?


Also, I am trying to write a function that decodes encoded data and returns an array, but for some reason cannot get it to work. Any suggestions? (See attached screen shot).


Thanks in advance!