Modifies request header for SharePoint REST API calls to get JSON instead of XML. For best results you'll need a JSON viewer Add-on.

Latest Version

Version
1.4.0
Update
January 25, 2021
Size
64.89KiB
Developer
Category
Users
1,000+
Rating
4.33333 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions

ActiveTab
Tabs
Storage
WebRequest
WebRequestBlocking
See more

SP REST JSON Extension

Once a tab is active, the current URL is matched against the following strings:
• /_api/web/
• /_api/site/
• /_api/sp.
• /_api/search
• /_vti_bin/ListData.svc


At a match the accept property in the request header is changed to 'application/json;odata=verbose' per default.

Global Options
• Add or change SharePoint URL filters
• Set the accept header per URL filter

In the Global options the following options can be chosen:
• application/json;odata=verbose
• application/json;odata=minimalmetadata
• application/json;odata=nometadata
• text/xml

Changelog:
Version 1.4.0
• Add option to set font-size for JSON Viewer.

Version 1.3.1
Bugfix
• The SchemaXml property of a list wasn't loaded correctly
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx",\t"description": "Modifies request header for SharePoint REST API calls to get JSON instead of XML. For best results you'll need a JSON viewer Add-on."\t,"manifest_version": 2\t,"name": "SP REST JSON"\t,"short_name": "SP REST JSON"\t,"version": "1.4.0"\t,"author": "Daniel Desch"\t,"homepage_url": "https://github.com/ddesch/SP-REST-JSON/tree/master/"\t,"icons": {\t\t"16": "icons/16/active.png",\t\t"32": "icons/32/active.png",\t\t"48": "icons/48/active.png",\t\t"64": "icons/64/active.png",\t\t"128": "icons/128/active.png"\t}\t,"browser_action": {\t\t"default_icon": {\t\t\t"16": "icons/16/inactive.png",\t\t\t"32": "icons/32/inactive.png",\t\t\t"48": "icons/48/inactive.png",\t\t\t"64": "icons/64/inactive.png",\t\t\t"128": "icons/128/inactive.png"\t\t },\t\t"default_popup": "popup/tabOptions.html"\t}\t,"background": {\t\t\t"scripts": ["SPRESTJSON.js"]\t\t\t,"persistent": true\t}\t,"content_scripts": [\t\t{\t\t "matches": [""],\t\t "run_at": "document_start",\t\t "css": ["JSONViewer/json-viewer.css"],\t\t "js": [\t\t\t "JSONViewer/json-viewer.js",\t\t\t "content.js"\t\t\t]\t\t}\t]\t,"permissions": [\t\t""\t\t,"activeTab"\t\t,"tabs"\t\t,"storage"\t\t,"webRequest"\t\t,"webRequestBlocking"\t]\t,"options_ui": {\t\t"page": "options.html",\t\t"browser_style": true,\t\t"open_in_tab": true\t}\t,"browser_specific_settings": {\t\t"gecko": {\t\t\t"id": {7284ef85-567a-43f4-ab24-b07dabe8de7e}\t\t \t,"strict_min_version": "68.0"\t\t}\t}}
Read more