Update Hardware.pm

render_json was removed in Mojolicious 4.0