added uid to json serializer