Perl Monk, Perl Meditation | |
PerlMonks |
Re: Can someone please write a *working* JSON moduleby karlgoethebier (Abbot) |
on Oct 26, 2021 at 14:56 UTC ( [id://11138070]=note: print w/replies, xml ) | Need Help?? |
One more thing: talexb suggested to get your JSON from somewhere out there as far as i understood. This idea seems to be fairly elegant. As you don't need to throw away your Apache/mod_perl stuff etc. What about this little sketch?
Then: starman --listen /tmp/starman.sock. And then try: echo -e "GET / HTTP/1.0\r\n" | nc -U /tmp/starman.sock. This should yield:
See also Plack::Request and Plack::App::URLMap. The other links you have already. Probably Try::Tiny might be helpful for handling malformed JSON. Regards, Karl «The Crux of the Biscuit is the Apostrophe»
In Section
Seekers of Perl Wisdom
|
|