JsonLookupVarRef() perhaps ?
The JSON produced is not a representation of the VarRef, so this isn't converting the latter to the former.