I know this is probably something crazy to try to do but I’m trying to just json_encode an {embed}.
I’ve tried using native ee:
<?php echo json_encode('{embed="objects/_video" entry_id="1234"}') ?>And hacking together a plugin to maybe enable the use of parse=“inward”:
{exp:phpstringfun function="json_encode" parse="inward"}{embed="objects/_video" entry_id="1234"}{/exp:phpstringfun}I know this is a parse order issue because embeds are parsed so late in the game. Any ideas though?