You have understood it.  How about `ConvertVarValueToJson`?

I can add some brief docs when we agree on the name.