[ColdBox 4.1] this.serialize.serializeQueryAs

Hello,

I have a made a utility method that will need to utilize the this.serialize.serializeQueryAs default that looks like the following:
I’m thinking I am missing something very simple here that I am overlooking.

component name=‘utility’ output=false singleton {
public function tableMetaData() {
required string tableName
string jsonType = application.serialize.serializeQueryAs
) {

[code here]
}
}

In ColdBox’s application.cfc, my test code is as follows:
this.serialize.serializeQueryAs = ‘row’;
application.serialize.serializeQueryAs = this.serialize.serializeQueryAs;

I have fwreinit=1 (no password enabled) and I also tested that application.cfc is being read.
However, the method says that serialize.serializeQueryAs does not exist in application.

What am I missing?

Thank you,
Ryan Hinton

I need to also mention that the utility.cfc is located in modules.api.models.utility.cfc just in case there is another application.cfc being called somewhere that I am not seeing, possibly?

> However, the method says that serialize.serializeQueryAs does not exist in application.

Are you creating it? I’m a little confused as this doesn’t seem like a ColdBox question.

What CF engine is this and can you provide a link to the instructions you’re trying to follow?

Thanks!

~Brad