<https://helpx.adobe.com/coldfusion/cfml-reference...
# documentation
m
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-a-b/arraysetmetadata.html This has such an unusual example where you're setting the metadata for each item in the array individually. There should be an example for the standard use case as well in which you apply the same
type
to every element in an array.
r
I've never seen this method before and the doc is next to useless tbh. It should clarify why this method would be used. Also, can someone explain why it would be used? I guess to tell CF how to treat items type wise?
m
@raymondcamden That's fair too. I didn't even look at the description. From what I can tell, the primary usage and intent behind its introduction was for serialization. You can read more about it here: https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-s/serializejson.html#arrayserialization
r
that makes total sense... and should be in the doc 🙂
👍 1