4

I need a purely text serialization of an object in VBScript.

Does VBScript provide any built-in support for serialization or is it up to me to enumerate the properties and put them in a string?

Alex Angas
  • 59,219
  • 41
  • 137
  • 210

4 Answers4

2

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

You could use a JSON serializer. (for ASP) Though I've noticed it has issues with COM objects. (Solved w/ Hack) As long as you're mostly serializing basic VBScript classes you'll be good.

Community
  • 1
  • 1
sholsinger
  • 3,028
  • 2
  • 23
  • 40
0

No, VBScript doesn't have any object serialization functionality built in. You will have to implement it yourself (or try finding some ready-made solutions).

Helen
  • 87,344
  • 17
  • 243
  • 314
0

And here is my shameless self promotion:

https://github.com/rcdmk/aspJSON

A fast classic ASP JSON parser and encoder for easy JSON manipulation to work with the new JavaScript MV* libraries and frameworks

Ricardo Souza
  • 16,030
  • 6
  • 37
  • 69
0

Here's another

http://code.google.com/p/aspjson

Brian Boatright
  • 36,294
  • 34
  • 81
  • 102