string myString = "{fname='Joe', lname='Smith'}";Is there any way to use myString to actually instantiate an object with two properties (fname and lname)?
var myObject = new {fname='Joe', lname='Smith'};
So I guess what I'm asking is, is there a way to dynamically use myString something like this: (I know this doesn't work but its here to give an idea of what I'm wanting to do)var myObject = new (myString);
Thanks for your help!