flask json argument needs to be a dict for unviersal use of the rest api