transformed UserAuth to json format