$.fn.writeJsonAttribute = function(key, value, type) {
    var attribute = new JsonAttribute(this);
    return attribute.write(key, value, type)
  };