When saving a hosted feature layer in Map Viewer classic with a large amount of custom symbologies, the error message, "Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property" is returned.