afb-auth: Move json serialisation of afb_auth