-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
CFCs from ORM are partially serialized #2
Comments
If I add default="" to the property, it is returned. |
Thanks for logging the issue here. Has a corresponding bug been logged with Adobe at all? If so, please link it here, too! :) |
I couldn't find one in the bugbase. If I don't find that its really me that is bugged and not serializeJSON, I'll submit it. I really don't know if my expectation is legit. |
I think null should be serialized as null. Sounds like a bug to me. Cody wrote:
|
I don't have time to write up a test case but I'm struggling with this scenario and can not find anyone talking about it.
I have an ORM CFC with a string property:
serializeJSON drops this field, any field, that has a null value in the database. Upon passing the component to serializeJSON, I verified that the field is in the component object and is type=string and has an empty string as its value. SerializeJSON drops it completely instead of including it with a value of "".
I'm using CF 10
The text was updated successfully, but these errors were encountered: