Optimisation: Check for __sleep only when jsonSerialize method is not present