Added better generic JSON request.