I need to pass an entire Craft object into a JavaScript function. I followed the instructions in this post, however this only covers passing in a string.
{% includeJsFile "/js/homepage.js" %}
{% set myJs %}
playlistData('{{myObject}}');
{% endset %}
{% includeJs myJs %}
Any ideas?