More robust JSON validation
We currently have in place a hand-crafted JSON validation strategy for the many JSON bits we manipulate inside the platform.
I propose we improve JSON validation by introducing JSON schemas for every piece of JSON we handle in the platform. There is a Python package available on PyPI that is compatible with draft-4 (the latest) of the specification.
Find here, a gentle introduction to JSON schemas.