I know how to use JSON to create objects, but there doesn\'t seem to be away to use JSON to create an object that is of a specific object type.
Here\'s an example of an
You could allow new Person() to accept an object to populate attributes with as a parameter.
var you = new Person({ firstName: 'Mike' });