How can I marshal a pickled object through an API ( preferably using flask-restplus )? How can I marshal a pickled object through an API ( preferably using flask-restplus )? flask flask

How can I marshal a pickled object through an API ( preferably using flask-restplus )?


Final answer:

In the end, we moved away from using pickles, to avoid version control problems when we updated our classes then tried to unpickle form old versions.

We ultimately used the suggestion in this SO answer, which was to use the jsonpickle library to serialise the arbitrary class object and spit it out of the API.