I'm using SQLAlchemy extension with Flask. While serializing my models (which are also used for database operations) using jsonpickle, I want some specific attributes to be ignored. Is there a way that allows me to set those rules?
SQLAlchemy adds an attribute named _sa_instance_state
to the object. In a word, I do not want this field to be in the JSON output.