Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Mojolicios - render json with field names

by robby_dobby (Hermit)
on Nov 10, 2016 at 06:41 UTC ( [id://1175658]=note: print w/replies, xml ) Need Help??


in reply to Mojolicios - render json with field names

Hello AnonyMonk,

Mojo::JSON requires perl datastructures in order to render JSON properly. What you have passed in via $tmp look like proper some JSON, so you may not need to do a lot of work but just display it directly without relying on Mojo::JSON! Do mark proper content type headers though, like Content-Type: text/json or something like that. :-)

Oh and do read about rendering JSON on Mojolicious.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found