SP REST JSON - Modify Request Header for SharePoint REST API Calls
SP REST JSON is a free Chrome add-on developed by Deschi that modifies the request header for SharePoint REST API calls, allowing users to obtain JSON instead of XML. This add-on is particularly useful for users who prefer working with JSON data or require a JSON viewer add-on for better results.
Once a tab is active, the current URL is checked against specific strings, including "/_api/web/", "/_api/site/", "/_api/sp.", "/_api/search", and "/_vti_bin/ListData.svc". If there is a match, the accept property in the request header is automatically changed to "application/json;odata=verbose" by default.
SP REST JSON provides global options that allow users to add or change SharePoint URL filters and set the accept header per URL filter. In the global options, users can choose from options such as "application/json;odata=verbose", "application/json;odata=minimalmetadata", "application/json;odata=nometadata", and "text/xml".
The latest version of SP REST JSONintroduces the option to set the font-size for the JSON viewer, providing users with more customization options. Additionally, versionincludes a bug fix for correctly loading the SchemaXml property of a list.
Overall, SP REST JSON is a valuable add-on for users working with SharePoint REST API calls, allowing them to easily modify the request header and obtain JSON data for improved compatibility and convenience.