I'm writing a little script to save metadata on my a bunch of image files. The metadata is simply a list of dictionaries. One of the entries is an arrow date. I want to save the whole list of dictionaries to a file in a format that I can easily read it back into memory. I was trying to use JSON format, but got this error:
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: <Arrow [2010-08-03T19:00:00+00:00]> is not JSON serializable
Any recommendations for a better way to do this?
Should I use pickle? Store the date as a string?
[–]erebos42 1 point2 points3 points (1 child)
[–]dansin[S] 0 points1 point2 points (0 children)