In this code:
```
var testJson = $().SPServices.SPGetListItemsJson({
listName: "Archive",
CAMLViewFields: "<ViewFields><FieldRef Name='Date' /></ViewFields>",
mappingOverrides: {
ows_Date: {
mappedName: "mappedDate",
objectType: "JSON "
}
}
});
$.when(testJson).done(function() {
console.log(this.data[0].mappedDate);
});
```
Problem comes in this line:
```
objectType: "JSON "
```
There has to be an extra space after JSON to work.
If not - it gives this error:
```
SCRIPT1014: Invalid character
jquery-1.11.0.min.js, line 4 character 16126
```
My set-up:
* SharePoint 2013
* IE10
* jquery-1.11.0.min.js
* jquery.SPServices-2014.01.min.js
```
var testJson = $().SPServices.SPGetListItemsJson({
listName: "Archive",
CAMLViewFields: "<ViewFields><FieldRef Name='Date' /></ViewFields>",
mappingOverrides: {
ows_Date: {
mappedName: "mappedDate",
objectType: "JSON "
}
}
});
$.when(testJson).done(function() {
console.log(this.data[0].mappedDate);
});
```
Problem comes in this line:
```
objectType: "JSON "
```
There has to be an extra space after JSON to work.
If not - it gives this error:
```
SCRIPT1014: Invalid character
jquery-1.11.0.min.js, line 4 character 16126
```
My set-up:
* SharePoint 2013
* IE10
* jquery-1.11.0.min.js
* jquery.SPServices-2014.01.min.js