We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Great library!
If I deserialize an array with a null value, I have an error
Uncaught TypeError: Cannot read property 'id' of null at eval (deserialize.js:32)
Could you check value before deserialize it ?
Maybe like this
function deserializeObject(object, definition, options) { var primitive = definition.type === String || definition.type === Boolean || definition.type === Number; var value = object; if(value != null) { var converter = definition.converter || propertyConverters.get(definition.type); if (converter) { return converter.deserialize(value); } if (!primitive) { var objDefinition = objectDefinitions.get(definition.type); if (objDefinition) { return deserialize(value, definition.type); } } } return value; }
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Great library!
If I deserialize an array with a null value, I have an error
Could you check value before deserialize it ?
Maybe like this
Thank you
The text was updated successfully, but these errors were encountered: