code: function attrToJson(v, objectType) {
  
          var colValue;
  
          switch (objectType) {
              case "Text":
                  colValue = v;
                  break;
              case "DateTime":
              case "datetime": // For calculated columns, stored as datetime;#value
                  // Dates have dashes instead of slashes: ows_Created="2009-08-25 14:24:48"
                  colValue = dateToJsonObject(v);
                  break;
              case "User":
                  colValue = userToJsonObject(v);
                  break;
              case "UserMulti":
                  colValue = userMultiToJsonObject(v);
                  break;
              case "Lookup":
                  colValue = lookupToJsonObject(v);
                  break;
              case "LookupMulti":
                  colValue = lookupMultiToJsonObject(v);
                  break;
              case "Boolean":
                  colValue = booleanToJsonObject(v);
                  break;
              case "Integer":
                  colValue = intToJsonObject(v);
                  break;
              case "Counter":
                  colValue = intToJsonObject(v);
                  break;
              case "MultiChoice":
                  colValue = choiceMultiToJsonObject(v);
                  break;
              case "Number":
              case "Currency":
              case "float": // For calculated columns, stored as float;#value
                  colValue = floatToJsonObject(v);
                  break;
              case "Calculated":
                  colValue = calcToJsonObject(v);
                  break;
              case "Attachments":
                  colValue = attachmentsToJsonObject(v);
                  break;
              case "URL":
                  colValue = urlToJsonObject(v);
                  break;
              case "JSON":
                  colValue = jsonToJsonObject(v); // Special case for text JSON stored in text columns
                  break;
              default:
                  // All other objectTypes will be simple strings
                  colValue = v;
                  break;
          }
          return colValue;
      }
docs: End $.fn.SPServices.SPXmlToJson