[thelist] JSON and Client-side classes
Mark Baldwin
mark.baldwin at attensa.com
Tue Mar 7 18:18:33 CST 2006
Greetings all,
I've been playing around with JSON and I can't seem to find the
answer to the following:
Lets say you have a JS include that defines an object such as
PersonObject = function() {
this.name = '';
this.age = '';
}
Is it possible, via JSON, to eval a string such that it would create
a new instance of a person object? A bonus would be a way of doing it
without creating an incredibly large, and obscene, constructor.
Thanks in advance,
Mark
More information about the thelist
mailing list