I'm reading Object initializer strings from a database but can't see any easy way to turn them back into objects.
For example, given the following string, how would you turn it into an object?
var initializer = "{type: car, colour: red, engine: 2.0L}";
I ended up decoding them by just looping through piece by piece but felt that there must be a better way.