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
If null is set, it should be converted to null, and not a string "null"
The text was updated successfully, but these errors were encountered:
function nullType(item) { return null; } function dynamicType(item) { var trimed = item.trim(); if (trimed === "") { return stringType(item); } if (numReg.test(trimed)) { return numberType(item); } else if (trimed.length === 5 && trimed.toLowerCase() === "false" || trimed.length === 4 && trimed.toLowerCase() === "true") { return booleanType(item); } else if (trimed.length === 4 && trimed.toLowerCase() === "null") { return nullType(item); } else if (trimed[0] === "{" && trimed[trimed.length - 1] === "}" || trimed[0] === "[" && trimed[trimed.length - 1] === "]") { return jsonType(item); } else { return stringType(item); } }
Sorry, something went wrong.
developed in 2.0.9 through nullObject parameter
@Keyang Is there anything I need to set in order for this to work?
No branches or pull requests
If null is set, it should be converted to null, and not a string "null"
The text was updated successfully, but these errors were encountered: