Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: PERL REST API Post script

by Anonymous Monk
on Feb 11, 2020 at 16:44 UTC ( [id://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 (Archbishop) 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-24 21:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found