Took json functionality from Flask's Request.