Takes a url, and data in form of URLSearchParams, performs http POST request and converts result to json then returns the json.
Takes a url, and data in form of URLSearchParams, performs http POST request and converts result to json then returns the json.