Update User.pm

render_json was removed in Mojolicious 4.0
Part 2: render_json(...) -> render(json => ...)
Part 3: render_json(...) -> render(json => ...)
Merge pull request #2 from reneeb/master

Hi Renée, 
thank you very much.