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.
In reply to Re: Mojolicios - render json with field names
by robby_dobby
in thread Mojolicios - render json with field names
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |