JSON "POST" to Flask View doesn't work
Ok I got a solution:
$.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/blog/add/ajax", data: JSON.stringify({title: 'hallo', article: 'test'}), success: function (data) { console.log(data.title); console.log(data.article); }, dataType: "json"});
This works for me now!