Entries for month: March 2010

Private instance vars show when JSON serialized in CF9

coldfusion , JavaScript

This is something I found interesting tonight. I made a CFC that sets private (variables scope) variables from the init parameters. They were not available by accessing them as obj.property, as expected. But when run through the serializeJSON function, those became available. I didn't expect this, but I think it's going to be handy for using them as lightweight transfer objects.

Powered by Mango Blog. Design and Icons by N.Design Studio
RSS Feeds