in reply to Outputting JSON with function () {...} values
you want to create "pseudo" JSON from Perl with a JSON library.
There is a possibility to allow Perl objects to return a scalar, but I doubt it's possible to be js code instead of a string.
See https://metacpan.org/pod/JSON#OBJECT-SERIALISATION
I see 3 possibilities:
HTH
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Outputting JSON with function () {...} values
by cosmicperl (Chaplain) on Oct 22, 2018 at 20:25 UTC | |
by LanX (Saint) on Oct 22, 2018 at 20:48 UTC |