Function
Certification
Functionality
SPGetListItemsJson combines several SPServices capabilities into one powerful function. By calling GetListItemChangesSinceToken, parsing the list schema, and passing the resulting mapping and data to SPXmlToJson automagically, we have a one-stop shop for retrieving SharePoint list data in JSON format. No manual mapping required!
Prerequisites
None
Syntax
$().SPServices.SPGetListItemsJson({ webURL: "", listName: "", CAMLViewName: "", CAMLQuery: "", CAMLViewFields: "", CAMLRowLimit: "", CAMLQueryOptions: "", changeToken: "", contains: "", mapping: null, mappingOverrides: null, debug: false });
webURL
The URL of the Web (site) which contains the list. If not specified, the current site is used. Examples would be: "/", "/Accounting", "/Departments/HR", etc. Note: It's always best to use relative URLs.
listName
The name or GUID of the list which contains the parent/child relationships. If you choose to use the GUID, it should look like: "{E73FEA09-CF8F-4B30-88C7-6FA996EE1706}". Note also that if you use the GUID, you do not need to specify the relatedWebURL if
the list is in another site.