Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by cosmicperl (Chaplain)
on Oct 22, 2018 at 20:25 UTC ( [id://1224518]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1224518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-05-27 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found