Uses Flask's Request.json parsing.