Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept numbers serialized as strings
Updates `deserialize` to accept numeric values encoded as strings. This occurs when JSON serialization a dictionary with `int` or `float` keys. To handle a dictionary, JSON converts the value into an object. Objects must have string-valued keys, so the numbers are encoded i.e. `str(x)` for any `x` that is a dictionary key. The updated final deserialization case now attempts to perform this specific deserialization route before testing the existing numerical deserialization routes. New test cases are present to check for this new behavior.
- Loading branch information