I've been using this script successfully for months now to register large Map Services in ArcGIS Online to be included in OpenData, but recently (the last couple of weeks) I've been receiving this error:
{'error':{'messageCode': 'CONT_0057', 'message': "Invalid JSON in 'text' parameter.", 'code': 400, 'details': []}}
I don't think anything has changed on my machine(s) and I'm not doing anything differently when creating my Map Service. What am I doing wrong? I've attached the whole python script.