Fixes issue #17.

Uses Flask's Request.json for JSON parsing.