Q: Assign an object variable from Twig to javascript Using this syntax (according to Pass variable from twig to js):
var channelData={{ ChannelDataFeed }};

was rendered as a descriptive string of the object (which then caused an error in the js since I didn't use quotes).
I don't want to copy each attribute from the Twig variable since it's tedious, so I'm looking for a way to assign the variable as a whole.
Is there a way to do that? Thanks.
