{"action":"opened","issue":{"url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/450","repository_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy","labels_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/450/labels{/name}","comments_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/450/comments","events_url":"https://api.github.com/repos/mitsuhiko/flask-sqlalchemy/issues/450/events","html_url":"https://github.com/mitsuhiko/flask-sqlalchemy/issues/450","id":193549270,"number":450,"title":"flask-sqlalchemy ignores the setting \"app.json_encoder\"","user":{"login":"TimoStolz","id":55839,"avatar_url":"https://avatars.githubusercontent.com/u/55839?v=3","gravatar_id":"","url":"https://api.github.com/users/TimoStolz","html_url":"https://github.com/TimoStolz","followers_url":"https://api.github.com/users/TimoStolz/followers","following_url":"https://api.github.com/users/TimoStolz/following{/other_user}","gists_url":"https://api.github.com/users/TimoStolz/gists{/gist_id}","starred_url":"https://api.github.com/users/TimoStolz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimoStolz/subscriptions","organizations_url":"https://api.github.com/users/TimoStolz/orgs","repos_url":"https://api.github.com/users/TimoStolz/repos","events_url":"https://api.github.com/users/TimoStolz/events{/privacy}","received_events_url":"https://api.github.com/users/TimoStolz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-05T16:45:31Z","updated_at":"2016-12-05T16:45:31Z","closed_at":null,"body":"When I provide a customized json encoder, this will be ignored by flask_sqlalchemy.\r\n\r\nLet's say I have:\r\n```\r\nfrom flask import Flask\r\napp = Flask(__name__)\r\napp.json_encoder = MyCustomJSONEncoder\r\n```\r\n\r\nThen this encoder should be used when creating the engine, like this:\r\n```\r\nsqlalchemy.create_engine(\r\n   ..., \r\n   json_serializer=lambda o: json.dumps(o, cls=app.json_encoder),\r\n   json_deserializer=lambda j: app.json_encoder.loads(j),\r\n   ...)\r\n```"}}
{"actor":{"display_login":"TimoStolz"}}