Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: PERL REST API Post script

by Anonymous Monk
on Feb 11, 2020 at 16:44 UTC ( #11112785=note: print w/replies, xml ) Need Help??

in reply to PERL REST API Post script

If your JSON doesn't parse, actually examining the generated JSON and figuring out why it doesn't parse is probably the way to go.

Of course, by hand-rolling your JSON you are trying to re-invent the wheel. Why not just build the Perl structure and then have something like the JSON module do the heavy lifting for you?

OK, JSON is not a core module, and maybe you are one of those unfortunates who can not install the module of your choice where you need it. You might still use the JSON module to help validate your hand-generated (yukkk!) JSON.

Replies are listed 'Best First'.
Re^2: PERL REST API Post script
by haukex (Bishop) on Feb 11, 2020 at 16:54 UTC
    OK, JSON is not a core module

    JSON::PP has been a core module since Perl v5.14 (2011).

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2020-11-24 22:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found