Use error handling when serializing to JSON
Use error handling when serializing to Core Data