Flask 0.9 does not have `app.json_encoder`.