in reply to Mojolicios - render json with field names
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.
|
|---|