I have a function writing data to a cache, where the data must be serialized to a json-formatted string. Rather than checking to see if the input `data` is a valid json string (i.e. try-except statement), can I simply always call `json.dumps(data)`? That is, if the input `data` is already serialized to json format, is calling `json.dumps(data)` harmless?