Writing a VBScript Serializer

I need pure textual serialization of an object in VBScript.

Does VBScript provide native support for serialization, or is it up to me to list the properties and put them in a string?

+4
source share
4 answers

No, VBScript has no built-in functions for serializing objects. You will have to implement it yourself (or try to find ready-made solutions).

0
source

Thought it might be useful to someone who got here from Google.

You can use the JSON serializer . (for ASP) Although I noticed that it has problems with COM objects . (Solved by w / Hack) As long as you basically serialize the base VBScript classes, you'll be fine.

+1
source

And here is my shameless self-esteem:

https://github.com/rcdmk/aspJSON

Fast classic ASP JSON parser and encoder for easy JSON manipulation of new JavaScript MV * libraries and frameworks

0
source

Source: https://habr.com/ru/post/1302694/


All Articles