Add the ability to specify default param values in register_json_route

Can we call this just `defaults` instead please? The only reason the others are uppercase is to match the superglobals :)