Page 304 -
P. 304
leaving pickle on the plate
This is NOT cool... I spent all that time
learning to use pickles and now you’re
abandoning them in favor of this “JSON”
thing. You’ve got to be joking...?
You are not exactly “abandoning” pickle.
The JSON technology is a better fit here for a number
of reasons. First of all, it’s a text-based format, so
it fits better with the way the Web works. Second, it’s
a standard that works the same on Python 2 and
Python 3, so there are no compatibility issues. And
third, because JSON is language-neutral, you open
up the possibility of other web tools written in other
programming languages interacting with your server.
If you use pickle here, you lose all this.
268 Chapter 8