in reply to Re: Outputting JSON with function () {...} values
in thread Outputting JSON with function () {...} values

Yes that's correct. Regexp'ing afterwords was where I thought I'd end up and this has confirmed it. I can't change to "legal JSON" as the output if for a JS plugin and I don't want to start hacking at that and break future upgrades.

  • Comment on Re^2: Outputting JSON with function () {...} values

Replies are listed 'Best First'.
Re^3: Outputting JSON with function () {...} values
by LanX (Saint) on Oct 22, 2018 at 20:48 UTC
    It's not trivial if the code contains double quotes and you do it on the Perl side.

    Post processing in JS should be easier.

    > and this has confirmed it.

    Please don't consider my opinion as the only possible.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice