Join Slack
Powered by
<https://helpx.adobe.com/coldfusion/cfml-reference...
# documentation
m
mtbrown
03/06/2024, 12:01 AM
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
raymondcamden
03/06/2024, 4:33 PM
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
mtbrown
03/06/2024, 7:15 PM
@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
raymondcamden
03/06/2024, 7:16 PM
that makes total sense... and should be in the doc 🙂
👍 1
Open in Slack
Previous
Next