code: function convertStrItems2Obj(obj) {
  	var result = {};
  	for (var key in obj) {
  		var val = obj[key];
  		val = extractTypeAndCast(val);
  		convertStrItem2Obj(key, val, result);
  	}
  
  	return result;
  }
docs: example obj =  { 'a.b.c.d': 10 } output : { a: {b: {c:{ d: 10}}}}