Help:JSON format 1.4.2 - 1.7.1

From semantic-mediawiki.org
Jump to: navigation, search


This documentation page applies to all SMW versions from 1.4.2 to 1.7.1.
Other versions: ≥ 1.8.0       Other languages: dezh-hans

Help:JSON format en 1.4.2 1.7.1


JSON format 1.4.2 - 1.7.1
Outputs semantic data in JSON format
Available languages
deenzh-hans
Further Information
Provided by: Semantic MediaWiki
Added: 1.4.2
Removed: still supported
Requirements: none
Format name: json
Enabled by default: 
Indicates whether the result format is enabled by default upon installation of the respective extension.
yes
Authors: Fabian Howahl, Jeroen De Dauw
Categories: export · plaintext
Group:
Table of Contents

↓ INFO ↓

The result format json is used to produce links to JSON files.

Parameters

Parameter Type Default Description
prettyprint yes/no empty A pretty-print output that displays additional indents and newlines

Example

{{#ask: [[Category:City]] [[located in::Germany]] 
| ?population
| format=json
}}

Result: JSON