title: Python + Flask REST API, how to convert data keys between camelcase and snakecase?
body: <p>I am learning Python, and coding simple REST API using <a href="http://flask.pocoo.org/" rel="noreferrer">Flask</a> micro-framework.</p>
  
  <p>I am using <a href="https://www.sqlalchemy.org/" rel="noreferrer">SQLAlchemy</a> for Object-relational-mapping and <a href="https://marshmallow.readthedocs.io/en/3.0/" rel="noreferrer">Marshmallow</a> for Object-serialization/deserialization.</p>
  
  <p>I am using snakecase for my variable names(according to <a href="https://www.python.org/dev/peps/pep-0008/" rel="noreferrer">PEP8</a>).</p>
  
  <p>I need to convert JSON object keys from camelcase to snakecase when receiving data from front-end(Angular) and vice versa, when returning response data. </p>
  
  <p>What is the best approach to do this using Flask ?</p>
  
  <p>I was unable to find a good answer on the internet.</p>